grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.19k stars 77 forks source link

Add .total suffix to network flow bytes metric in OTEL #767

Closed mariomac closed 3 weeks ago

mariomac commented 3 weeks ago

When network metrics are sent via Prometheus or via an intermadiate OTEL collector, the metrics are queryable as beyla_network_flow_metrics_total in Grafana.

When we use the OTEL endpoint in Grafana Cloud, metrics are visible as beyla_network_flow_metrics, without the _total.

This PR adds explicitly the .total suffix to the OTEL exporter.

Unchanged integration tests verify that, when an OTEL collector is used, it won't duplicate the _total_total suffix.