You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi team
i need some help
i am using https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.cadvisor/
but when i am trying to see the metrics
container_cpu_usage_seconds_total
i am getting metrics as below
{name="container_cpu_usage_seconds_total", cluster_name="lip-mgmt-sre", cpu="total", environment="mgmt", id="/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-pod0775ee54_2271_484a_a9fe_e3a717250b9e.slice", instance="gke-lip-mgmt-sre-clu-sre-1-30-11-gke--26d5377f-vioe", job="integrations/cadvisor"}
which doesnt contain the pod name
can anyone help how to get the pod name??
prometheus.exporter.cadvisor "pods" {}
// Configure a prometheus.scrape component to collect cadvisor metrics.
prometheus.scrape "scraper" {
targets = prometheus.exporter.cadvisor.pods.targets
forward_to = [ prometheus.relabel.default.receiver ]
}
above is my config
What's wrong?
hi team
i need some help
i am using https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.cadvisor/
but when i am trying to see the metrics
container_cpu_usage_seconds_total
i am getting metrics as below
{name="container_cpu_usage_seconds_total", cluster_name="lip-mgmt-sre", cpu="total", environment="mgmt", id="/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-pod0775ee54_2271_484a_a9fe_e3a717250b9e.slice", instance="gke-lip-mgmt-sre-clu-sre-1-30-11-gke--26d5377f-vioe", job="integrations/cadvisor"}
which doesnt contain the pod name
can anyone help how to get the pod name??
prometheus.exporter.cadvisor "pods" {}
// Configure a prometheus.scrape component to collect cadvisor metrics.
prometheus.scrape "scraper" {
targets = prometheus.exporter.cadvisor.pods.targets
forward_to = [ prometheus.relabel.default.receiver ]
}
above is my config
Steps to reproduce
deploy alloy with the below config
System information
No response
Software version
No response
Configuration
Logs
The text was updated successfully, but these errors were encountered: