Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on OpenMetrics #300

Merged
merged 20 commits into from
Sep 7, 2018
Merged

Initial work on OpenMetrics #300

merged 20 commits into from
Sep 7, 2018

Conversation

brian-brazil
Copy link
Contributor

This should handle all valid inputs, but does not yet reject all invalid inputs.

README.md Show resolved Hide resolved
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

While I'm no Python expert, this LGTM.

With OpenMetrics the _total is a suffix on a sample
for a counter, so the convention that Counters should end
in total is now enforced. If an existing counter is
missing the _total, it'll now appear on the /metrics.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
This makes things more structured and readable,
and allows for extra information OpenMetrics will
need.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Add support for this in Prometheus text format exposition

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
If unit is missing add it rather than erroring.
Add unit support to core types.
Don't allow unit on info/stateset/enum, as that doesn't make sense.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
It's only in the timeseries name now.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
@brian-brazil brian-brazil merged commit 10c8eb4 into master Sep 7, 2018
@brian-brazil brian-brazil deleted the openmetrics branch September 7, 2018 16:26
@sanathkr
Copy link

Do you know when Info and Enum metrics will be available?

@brian-brazil
Copy link
Contributor Author

Whenever the next release is, there's more work to be done. You can already emulate them yourself with gauges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants