Browse Source

minor yaml indentation consistency fix in example configs (#3946)

pull/3907/merge
Paul Gier 7 years ago committed by Brian Brazil
parent
commit
85a3c974b7
  1. 8
      documentation/examples/kubernetes-rabbitmq/svc.yml
  2. 36
      documentation/examples/prometheus-kubernetes.yml
  3. 2
      documentation/examples/prometheus.yml

8
documentation/examples/kubernetes-rabbitmq/svc.yml

@ -9,9 +9,9 @@ metadata:
prometheus.io/port: "9090" prometheus.io/port: "9090"
spec: spec:
ports: ports:
- port: 9090 - port: 9090
name: exporter name: exporter
targetPort: exporter targetPort: exporter
protocol: TCP protocol: TCP
selector: selector:
app: rabbitmq app: rabbitmq

36
documentation/examples/prometheus-kubernetes.yml

@ -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
# #

2
documentation/examples/prometheus.yml

@ -26,4 +26,4 @@ scrape_configs:
# scheme defaults to 'http'. # scheme defaults to 'http'.
static_configs: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:9090']

Loading…
Cancel
Save