diff --git a/documentation/examples/kubernetes-rabbitmq/svc.yml b/documentation/examples/kubernetes-rabbitmq/svc.yml index de98e269c..db521146b 100644 --- a/documentation/examples/kubernetes-rabbitmq/svc.yml +++ b/documentation/examples/kubernetes-rabbitmq/svc.yml @@ -9,9 +9,9 @@ metadata: prometheus.io/port: "9090" spec: ports: - - port: 9090 - name: exporter - targetPort: exporter - protocol: TCP + - port: 9090 + name: exporter + targetPort: exporter + protocol: TCP selector: app: rabbitmq diff --git a/documentation/examples/prometheus-kubernetes.yml b/documentation/examples/prometheus-kubernetes.yml index 3768ee801..c83b58a73 100644 --- a/documentation/examples/prometheus-kubernetes.yml +++ b/documentation/examples/prometheus-kubernetes.yml @@ -215,26 +215,26 @@ scrape_configs: module: [http_2xx] kubernetes_sd_configs: - - role: ingress + - role: ingress relabel_configs: - - source_labels: [__meta_kubernetes_ingress_annotation_prometheus_io_probe] - action: keep - regex: true - - source_labels: [__meta_kubernetes_ingress_scheme,__address__,__meta_kubernetes_ingress_path] - regex: (.+);(.+);(.+) - replacement: ${1}://${2}${3} - target_label: __param_target - - target_label: __address__ - replacement: blackbox-exporter.example.com:9115 - - source_labels: [__param_target] - target_label: instance - - action: labelmap - regex: __meta_kubernetes_ingress_label_(.+) - - source_labels: [__meta_kubernetes_namespace] - target_label: kubernetes_namespace - - source_labels: [__meta_kubernetes_ingress_name] - target_label: kubernetes_name + - source_labels: [__meta_kubernetes_ingress_annotation_prometheus_io_probe] + action: keep + regex: true + - source_labels: [__meta_kubernetes_ingress_scheme,__address__,__meta_kubernetes_ingress_path] + regex: (.+);(.+);(.+) + replacement: ${1}://${2}${3} + target_label: __param_target + - target_label: __address__ + replacement: blackbox-exporter.example.com:9115 + - source_labels: [__param_target] + target_label: instance + - action: labelmap + regex: __meta_kubernetes_ingress_label_(.+) + - source_labels: [__meta_kubernetes_namespace] + target_label: kubernetes_namespace + - source_labels: [__meta_kubernetes_ingress_name] + target_label: kubernetes_name # Example scrape config for pods # diff --git a/documentation/examples/prometheus.yml b/documentation/examples/prometheus.yml index d9c655870..af33d8704 100644 --- a/documentation/examples/prometheus.yml +++ b/documentation/examples/prometheus.yml @@ -26,4 +26,4 @@ scrape_configs: # scheme defaults to 'http'. static_configs: - - targets: ['localhost:9090'] + - targets: ['localhost:9090']