-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(om1.1): relax the requirements around unit and total suffixes #2750
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
base: main
Are you sure you want to change the base?
Conversation
Allow exposers to expose metrics that do not put `_total` or unit as suffix to metric names. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Co-authored-by: David Ashpole <dashpole@google.com> Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
```openmetrics-add-eof | ||
# TYPE foo counter | ||
foo 17.0 1520879607.789 | ||
foo_created 1520430000.123 1520879607.789 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs three ticks to fix formatting
PR description needs to be updated |
##### Counter | ||
|
||
The MetricPoint's Total Value Sample MetricName MUST have the suffix `_total`. If present the MetricPoint's Created Value Sample MetricName MUST have the suffix `_created`. | ||
The MetricPoint's Total Value Sample MetricName SHOULD have the suffix `_total`. If present the MetricPoint's Created Value Sample MetricName MUST have the suffix `_created`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, I'm not sure how Otel deals with created metrics. I am tempted not to have any MUSTs around names so that we can truly allow anything and not be against the spec (no matter how much we discourage it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need a MUST for the _created series, otherwise it wouldn't be the _created
series :).
Allow exposers to expose metrics that do not put
_total
or unit as suffix to metric names.Out of scope: note that this does not relax rules around the uniqueness of metric family names!
Alternatives considered:
openmetrics-permissive-text
and only relax rules if content negotiation yieldspermissive
.openmetrics-strict-text
and only relax rules if content negotiation is notstrict
.