Skip to content

Commit

Permalink
let prometheus ignore redis port (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudifsd authored and Anbang-Hu committed Nov 12, 2019
1 parent 3c0db27 commit 2e88430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClusterBootstrap/services/jobmanager/jobmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
ports:
- containerPort: 9300
hostPort: 9300
name: redis-port
name: prom-ign-redis
protocol: TCP
volumes:
- name: certs
Expand Down
3 changes: 3 additions & 0 deletions src/ClusterBootstrap/services/monitor/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ data:
replacement: ${1}:${2}
action: replace
target_label: __address__
- source_labels: [__meta_kubernetes_pod_container_port_name]
regex: 'prom-ign-.*'
action: drop
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: scraped_from
Expand Down

0 comments on commit 2e88430

Please sign in to comment.