Open kadhamecha-conga opened 2 months ago
Pinging code owners for receiver/prometheus: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself.
looks like the prometheus receiver defined above isn't used in your pipeline
hi it is there in metrics stage : metrics: receivers: [prometheus,kubeletstats/infra,k8s_cluster]
Can you check that you've set the KUBE_NODE_NAME
env using the downward API in your pod spec?
And I assume you are setting the annotations correctly on your pods?
And you've granted the collector the ability to get/list/watch pods using RBAC?
yes , annotations are present in pod
RBAC used by otel pod has rules as below: `rules:
hi @dashpole , can you please guide, if I'm missing something in config?
The config looks correct. Are you looking at the logs from the collector which is on the same node as the application? The other thing you can try is removing some of the relabel_configs to see if any of them are the cause of the pod not being discovered.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Component(s)
receiver/prometheus
What happened?
The OTel Collector which is running in daemonset mode , which is configured to scrape metrics from pods based on specific annotations, Typically like prometheus.io/scrape and prometheus.io/path to identify pods that expose metrics and the paths where the metrics are available.
i have attached to config and logs to scrape the metrics based on annotation , but scraping is not done and not able to receive the metrics.
can you please help ?
thanks.
Collector version
0.73
Environment information
EKS 1.26
OpenTelemetry Collector configuration
Log output
Additional context
No response