Skip to content

Commit

Permalink
Adding node-exporter scrape_config job in prometheus.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayja committed Aug 23, 2024
1 parent c9dfd27 commit 75b5517
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions config/monitoring/prometheus/config/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,16 @@ scrape_configs:
names:
- default
- aerospike
# - job_name: 'kubernetes_event_exporter' # https://github.com/resmoio/kubernetes-event-exporter
# kubernetes_sd_configs:
# - role: endpoints
# namespaces:
# names:
# - monitoring
# relabel_configs:
# - action: keep
# regex: event-exporter
# replacement: $1
# separator: ;
# source_labels:
# - __meta_kubernetes_pod_container_port_name
- job_name: 'event_exporter' # https://github.com/caicloud/event_exporter/blob/master/deploy/README.md
static_configs:
- targets: ['event-exporter:9102']
- job_name: 'node-exporter' # https://devopscube.com/node-exporter-kubernetes/
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [ __meta_kubernetes_endpoints_name ]
regex: 'node-exporter'
action: keep
- job_name: 'aerospike'
kubernetes_sd_configs:
- role: endpoints
Expand Down

0 comments on commit 75b5517

Please sign in to comment.