-
Notifications
You must be signed in to change notification settings - Fork 14
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
Mismatch in metric names in metadata and actual values #10
Comments
The rules for mapping Prometheus metric metadata to the OpenTelemetry metric model include guidance for unit metadata. These rules state that portions in I suggest trying this: (instrument/instrument {:name "ws-disconnect"
:unit "{times}"
:instrument-type :counter
:description "The number of times the ws disconnects"}) |
I guess you're right about rules for mapping metric metadata. And for my own custom metrics, i am even okay dropping the But for metrics that are collected / emitted automatically, I can't control this and thus important metrics like
I can see that this is actually a shortcoming of the Cloudwatch prometheus scraper but it would be great if clj-otel (specifically the prometheus exporter) could help me do something about it. |
I agree that the issue lies with the AWS CloudWatch integration. If you are using ADOT Collector, this issue is relevant as it mentions upcoming alignment with the upstream OpenTelemetry Collector. You may be interested in the opt-in feature gate |
In case of a metric defined like this
We get the metrics entries to be
While I am aware that the addition of the
_times
and_total
suffixes are in line with Prometheus metrics naming best practices, tools like AWS Cloudwatch trip over such metrics since they cant find any metadata forws_disconnect_times_total
since the metadata is actually forws_disconnect_total
Is there any configurable way to also suffix the
_times
etc to the TYPE declaration of the metric? So that the metric names are always the same in the metadata and actual values?The text was updated successfully, but these errors were encountered: