|
|
@ -215,26 +215,26 @@ scrape_configs: |
|
|
|
module: [http_2xx] |
|
|
|
module: [http_2xx] |
|
|
|
|
|
|
|
|
|
|
|
kubernetes_sd_configs: |
|
|
|
kubernetes_sd_configs: |
|
|
|
- role: ingress |
|
|
|
- role: ingress |
|
|
|
|
|
|
|
|
|
|
|
relabel_configs: |
|
|
|
relabel_configs: |
|
|
|
- source_labels: [__meta_kubernetes_ingress_annotation_prometheus_io_probe] |
|
|
|
- source_labels: [__meta_kubernetes_ingress_annotation_prometheus_io_probe] |
|
|
|
action: keep |
|
|
|
action: keep |
|
|
|
regex: true |
|
|
|
regex: true |
|
|
|
- source_labels: [__meta_kubernetes_ingress_scheme,__address__,__meta_kubernetes_ingress_path] |
|
|
|
- source_labels: [__meta_kubernetes_ingress_scheme,__address__,__meta_kubernetes_ingress_path] |
|
|
|
regex: (.+);(.+);(.+) |
|
|
|
regex: (.+);(.+);(.+) |
|
|
|
replacement: ${1}://${2}${3} |
|
|
|
replacement: ${1}://${2}${3} |
|
|
|
target_label: __param_target |
|
|
|
target_label: __param_target |
|
|
|
- target_label: __address__ |
|
|
|
- target_label: __address__ |
|
|
|
replacement: blackbox-exporter.example.com:9115 |
|
|
|
replacement: blackbox-exporter.example.com:9115 |
|
|
|
- source_labels: [__param_target] |
|
|
|
- source_labels: [__param_target] |
|
|
|
target_label: instance |
|
|
|
target_label: instance |
|
|
|
- action: labelmap |
|
|
|
- action: labelmap |
|
|
|
regex: __meta_kubernetes_ingress_label_(.+) |
|
|
|
regex: __meta_kubernetes_ingress_label_(.+) |
|
|
|
- source_labels: [__meta_kubernetes_namespace] |
|
|
|
- source_labels: [__meta_kubernetes_namespace] |
|
|
|
target_label: kubernetes_namespace |
|
|
|
target_label: kubernetes_namespace |
|
|
|
- source_labels: [__meta_kubernetes_ingress_name] |
|
|
|
- source_labels: [__meta_kubernetes_ingress_name] |
|
|
|
target_label: kubernetes_name |
|
|
|
target_label: kubernetes_name |
|
|
|
|
|
|
|
|
|
|
|
# Example scrape config for pods |
|
|
|
# Example scrape config for pods |
|
|
|
# |
|
|
|
# |
|
|
|