Skip to content

Commit

Permalink
add scrape config for Service Catalog controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Boyd committed Feb 21, 2018
1 parent bfdca25 commit c98a943
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,26 @@ objects:
action: keep
regex: openshift-template-service-broker;apiserver;https
# Scrape config for the service catalog
- job_name: 'openshift-service-catalog'
scheme: http
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_name]
action: keep
regex: kube-service-catalog;controller-manager-(.+)
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
alerting:
alertmanagers:
- scheme: http
Expand Down
20 changes: 20 additions & 0 deletions pkg/oc/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions test/extended/testdata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c98a943

Please sign in to comment.