-
Hi there, we are using opentelemetry java agent version 1.25. The prometheus exporter in this version is exporting metrics following the OpenMetrics format which includes those "Info" types, for example:
I can definitely understand following OpenMetrics spec is good, but this caused some trouble for us as well as we are using telegraf in our system to parse the metrics, and the telegraf has not yet supported these metrics types (Still adapting the old Promethues format) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This question is best asked from https://github.com/open-telemetry/opentelemetry-java. If opentelemetry-java does not provide such options then perhaps collector does, if it is so you could send metrics to collector via otlp and use the prometheus exporter in collector. |
Beta Was this translation helpful? Give feedback.
-
Just for anyone might find this discussion in the future, this issue has been resolved: open-telemetry/opentelemetry-java#5693 which means if you have your opentelemetry java agent with version higher than 2.0.0, the target info type has been converted to the gauge type which is compatible with the prometheus text format. |
Beta Was this translation helpful? Give feedback.
This question is best asked from https://github.com/open-telemetry/opentelemetry-java. If opentelemetry-java does not provide such options then perhaps collector does, if it is so you could send metrics to collector via otlp and use the prometheus exporter in collector.