krakend / krakend-otel

KrakenD component for OpenTelemetry
Apache License 2.0
8 stars 10 forks source link

Resource information is not added to metrics #10

Closed thinkingabouther closed 5 months ago

thinkingabouther commented 5 months ago

Found an issue where OTEL resource information is not being added to metrics. As a result, metrics generated by different services couldn't be differentiated with some of the metrics backends.

For example, according to Prometheus compatibility specs, service.name value is injected under the job label.

The current implementation yields the following metrics (after re-exporting, so the value is in under exported_job label):

image