-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make eventing components observable (#1722)
* Make eventing controller observable - Enable scrapping of eventing-controller - Add eventing reconciler dasshboard * Retain vendor license * Removed eventing reconciler dashboard * Make broker filter and ingress scrapeable * Removed hard coded annotation for prometheus - Refer prometheus-operator/kube-prometheus#16 * Made sources-controller observable * Remove sources metrics service * Fixed as per PR comments
- Loading branch information
1 parent
a6f4e5a
commit 359776f
Showing
6 changed files
with
148 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
config/monitoring/metrics/prometheus/100-prometheus-scrape-kn-eventing.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Eventing controller | ||
- job_name: eventing-controller | ||
scrape_interval: 3s | ||
scrape_timeout: 3s | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
# Scrape only the the targets matching the following metadata | ||
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_app, __meta_kubernetes_pod_container_port_name] | ||
action: keep | ||
regex: knative-eventing;eventing-controller;metrics | ||
# Rename metadata labels to be reader friendly | ||
- source_labels: [__meta_kubernetes_namespace] | ||
target_label: namespace | ||
- source_labels: [__meta_kubernetes_pod_name] | ||
target_label: pod | ||
- source_labels: [__meta_kubernetes_service_name] | ||
target_label: service | ||
# Broker filter | ||
- job_name: broker-filter | ||
scrape_interval: 3s | ||
scrape_timeout: 3s | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
# Scrape only the the targets matching the following metadata | ||
- source_labels: [__meta_kubernetes_pod_label_eventing_knative_dev_brokerRole, __meta_kubernetes_pod_container_port_name] | ||
action: keep | ||
regex: filter;metrics | ||
# Rename metadata labels to be reader friendly | ||
- source_labels: [__meta_kubernetes_namespace] | ||
target_label: namespace | ||
- source_labels: [__meta_kubernetes_pod_name] | ||
target_label: pod | ||
- source_labels: [__meta_kubernetes_service_name] | ||
target_label: service | ||
# Broker ingress | ||
- job_name: broker-ingress | ||
scrape_interval: 3s | ||
scrape_timeout: 3s | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
# Scrape only the the targets matching the following metadata | ||
- source_labels: [__meta_kubernetes_pod_label_eventing_knative_dev_brokerRole, __meta_kubernetes_pod_container_port_name] | ||
action: keep | ||
regex: ingress;metrics | ||
# Rename metadata labels to be reader friendly | ||
- source_labels: [__meta_kubernetes_namespace] | ||
target_label: namespace | ||
- source_labels: [__meta_kubernetes_pod_name] | ||
target_label: pod | ||
- source_labels: [__meta_kubernetes_service_name] | ||
target_label: service | ||
# Sources controller | ||
- job_name: sources-controller | ||
scrape_interval: 3s | ||
scrape_timeout: 3s | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
# Scrape only the the targets matching the following metadata | ||
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_app, __meta_kubernetes_pod_container_port_name] | ||
action: keep | ||
regex: knative-eventing;sources-controller;metrics | ||
# Rename metadata labels to be reader friendly | ||
- source_labels: [__meta_kubernetes_namespace] | ||
target_label: namespace | ||
- source_labels: [__meta_kubernetes_pod_name] | ||
target_label: pod | ||
- source_labels: [__meta_kubernetes_service_name] | ||
target_label: service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters