diff --git a/README.md b/README.md index f5d5564..b695af8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # kube-summary-exporter -Exports prometheus metrics for the Kubernetes Summary API. +Exports Prometheus metrics for the Kubernetes Summary API. This exists because of: https://github.com/google/cadvisor/issues/2785 @@ -20,7 +20,7 @@ Visiting http://localhost:9779/node/example-node will return metrics for the node 'example-node'. App will look for `example-node` in the `current-context` cluster set in kube config. -[Here's an example scrape config.](manifests/scrap-config.yaml) +[Here's an example scrape config.](manifests/scrape-config.yaml) ## Metrics diff --git a/manifests/scrap-config.yaml b/manifests/scrape-config.yaml similarity index 80% rename from manifests/scrap-config.yaml rename to manifests/scrape-config.yaml index 1fd141c..70c4f47 100644 --- a/manifests/scrap-config.yaml +++ b/manifests/scrape-config.yaml @@ -4,8 +4,9 @@ kubernetes_sd_configs: - role: node relabel_configs: - - action: labelmap - regex: __meta_kubernetes_node_label_(.+) + - source_labels: [__meta_kubernetes_node_label_role] + action: replace + target_label: role - source_labels: [__meta_kubernetes_node_name] regex: (.+) target_label: __metrics_path__