Skip to content

Commit

Permalink
Update scrape config example
Browse files Browse the repository at this point in the history
Using our current in-use config as reference
  • Loading branch information
george-angel committed Nov 1, 2024
1 parent 06a8656 commit e8fb8e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
5 changes: 3 additions & 2 deletions manifests/scrap-config.yaml → manifests/scrape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit e8fb8e4

Please sign in to comment.