kubernetes_sd_configs for nodes

12 views
Skip to first unread message

Omar Elbanby

unread,
Jun 5, 2020, 12:08:00 PM6/5/20
to Prometheus Users
Hi everyone, 

I am running node exporter as a pods in k8s and exposing the metrics on port 11100 for each node. When I try to use kubernetes_sd_configs for nodes, it returns the node IP + kublet port (10250).

``` prometheus.yml

- job_name: gke-nodes
      kubernetes_sd_configs:
      - role: node
```

How can I configure Prometheus to query my node exporter with the correct port (11100)?

Reply all
Reply to author
Forward
0 new messages