Skip to content

Commit

Permalink
# add prometheus node
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Nov 30, 2024
1 parent 53f4a33 commit ab563dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/chart/ops/prometheus/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ data:
replacement: $1
action: keep
- job_name: k8s-node
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- cattle-monitoring-system
relabel_configs:
- source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name]
regex: prometheus-node-exporter
replacement: $1
action: keep
- job_name: spring
kubernetes_sd_configs:
- role: endpoints
Expand Down

0 comments on commit ab563dc

Please sign in to comment.