Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Conversation

sjmudd
Copy link
Collaborator

@sjmudd sjmudd commented Apr 7, 2017

Somehow I forgot to expose the api calls in a previous PR. This fixes this.

Add the following api calls

  • /api/instance-buffered-write-metrics-raw/:seconds
  • /api/instance-buffered-write-metrics-aggregated/:seconds
  • contributed code is using same conventions as original code
  • code is formatted via gofmt (please avoid goimports)
  • code is built via ./build.sh
  • code is tested via go test ./go/...

sjmudd added 3 commits April 7, 2017 16:43
Add the following api calls
* /api/instance-buffered-write-metrics-raw/:seconds
* /api/instance-buffered-write-metrics-aggregated/:seconds
* also change collection name strings to constants
}

return wba
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure go-metrics, which we used under vendor, automatically does the 50th, 75th etc. percentiles. Can you not use that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work on non-integer values. I guess I could ensure I'm using the time.Duration values and work on that and then convert any final results into the ..Seconds values I'm using but that's not how I implemented this.

If you'd accept the PR as is I'll make an issue to look to remove the use of this extra package if that can be done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been running on my systems since April so it would be good to get these extra metrics into orchestrator.

@mateusduboli mateusduboli mentioned this pull request Oct 31, 2018
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants