Skip to content

Conversation

@brian-brazil
Copy link
Contributor

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

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.

4 participants