grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.02k stars 108 forks source link

No parameter to set (enable_open_metrics) otelcol.exporter.prometheus on Grafana Alloy #936

Open shaiajneh opened 1 month ago

shaiajneh commented 1 month ago

Request

OTLP Prometheus exporter supports a parameter to export metrics in OpenMetrics Format enable_open_metrics. This parameter is needed to enable exemplars.

Use case

This is no reference in the documentation to set enable_open_metrics . This required to enable exemplars on OTLP Prometheus Exporter configured on Grafana Alloy.

hainenber commented 1 month ago

There's a note banner saying that the Alloy component is unrelated to your referred OTLP Prometheus exporter, fyi. The metric conversion schema is different, so to speak.

shaiajneh commented 1 month ago

@hainenber I understand. This is a feature request for a Parameter that does the same function (if possible).

VigneshGanesan-meesho commented 3 weeks ago

@shaiajneh does this mean, with this there is not way to send exemplars to any backend?

ptodev commented 3 weeks ago

I think that after this change, exemplars should work out of the box for a few metric types:

The exemplars are available for the histograms and for the sums of type "counter" (cumulative and monotonic).

Do you happen to be working with a different metric type?

cc @wildum