Steps to reproduce the problem:
Use this fluent-bit config:
[SERVICE]
Flush 1
Daemon off
Log_Level info
[INPUT]
Name node_exporter_metrics
Tag node_metrics
Scrape_interval 10
[OUTPUT]
Name stdout
Match_Regex node_metrics
[OUTPUT]
Name opentelemetry
Match node_metrics
Host 127.0.0.1
Port 4319
metrics_uri /v1/metrics
Log_response_payload True
Tls Off
Bug Report
Describe the bug The out_telemetry doesn't set an aggregation type for counter metrics. As a results those metrics are discarded because prometheus metric format needs it. The code that check if aggregation type is set: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/9810bb011e1edc835c8f8ae329884a183bf5586d/pkg/translator/prometheusremotewrite/metrics_to_prw.go#L66
To Reproduce Exemple of workflow who leads to this issue:
Steps to reproduce the problem: Use this fluent-bit config:
And this open-telemetry-collector config:
Fix:
https://github.com/fluent/cmetrics/pull/166 https://github.com/fluent/fluent-bit/pull/6302