Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is opentelemetry-agent able to collect pod metrics? Possible duplication #392

Open
qgervacio-dk opened this issue Mar 21, 2024 · 3 comments

Comments

@qgervacio-dk
Copy link

Hi CX team,

I would like to seek help understanding the otel-integration 0.0.65.

i am using a minimal https://github.com/coralogix/telemetry-shippers/blob/master/otel-integration/k8s-helm/values.yaml and only changing global section.

i also deployed a collector with 1 prometheus receiver job named c1 configured to scrape pods in all namespaces with a specific prefix. pods in these namespaces are prom annotated.

prometheus.io/path: ...
prometheus.io/port: "..."
prometheus.io/scheme: http
prometheus.io/scrape: "true"

when i inspect the ingested metrics, i anticipated metrics e.g. jvm_buffer_count_buffers to have job="c1" telling me that this metric was scraped by my custom c1 collector.

however same metric e.g. jvm_buffer_count_buffers also exists with label cx_otel_integration_name="coralogix-integration-helm" which is from otel-integration. this is the part that confuses me. how does this works? i confirmed that these app pods is not pushing metrics to any collectors.

also, for the sample metric jvm_buffer_count_buffers with label cx_otel_integration_name="coralogix-integration-helm" i see 3 timeseries with exactly the same labels, even the Time only, differs by label host_id.

@qgervacio-dk
Copy link
Author

i suspect the duplication is similar to what's mentioned in prometheusreceiver

@qgervacio-dk
Copy link
Author

for follow up pls

@qgervacio
Copy link
Contributor

for closure pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants