prometheus.yaml: Fix indentation
This commit is contained in:
parent
0a29314e0c
commit
3435734668
|
@ -1,18 +1,18 @@
|
||||||
global:
|
global:
|
||||||
evaluation_interval: 1m
|
evaluation_interval: 1m
|
||||||
scrape_interval: 1m
|
scrape_interval: 1m
|
||||||
scrape_timeout: 10s
|
scrape_timeout: 10s
|
||||||
rule_files:
|
rule_files:
|
||||||
- /etc/config/recording_rules.yml
|
- /etc/config/recording_rules.yml
|
||||||
- /etc/config/alerting_rules.yml
|
- /etc/config/alerting_rules.yml
|
||||||
- /etc/config/rules
|
- /etc/config/rules
|
||||||
- /etc/config/alerts
|
- /etc/config/alerts
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: prometheus
|
- job_name: prometheus
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:9090
|
- localhost:9090
|
||||||
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||||
job_name: kubernetes-apiservers
|
job_name: kubernetes-apiservers
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
tls_config:
|
tls_config:
|
||||||
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
insecure_skip_verify: true
|
insecure_skip_verify: true
|
||||||
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||||
job_name: kubernetes-nodes
|
job_name: kubernetes-nodes
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: node
|
- role: node
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
tls_config:
|
tls_config:
|
||||||
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
insecure_skip_verify: true
|
insecure_skip_verify: true
|
||||||
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||||
job_name: kubernetes-nodes-cadvisor
|
job_name: kubernetes-nodes-cadvisor
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: node
|
- role: node
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
tls_config:
|
tls_config:
|
||||||
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
insecure_skip_verify: true
|
insecure_skip_verify: true
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-service-endpoints
|
job_name: kubernetes-service-endpoints
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_node_name
|
- __meta_kubernetes_pod_node_name
|
||||||
target_label: node
|
target_label: node
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-service-endpoints-slow
|
job_name: kubernetes-service-endpoints-slow
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
target_label: node
|
target_label: node
|
||||||
scrape_interval: 5m
|
scrape_interval: 5m
|
||||||
scrape_timeout: 30s
|
scrape_timeout: 30s
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: prometheus-pushgateway
|
job_name: prometheus-pushgateway
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: service
|
- role: service
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
regex: pushgateway
|
regex: pushgateway
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_service_annotation_prometheus_io_probe
|
- __meta_kubernetes_service_annotation_prometheus_io_probe
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-services
|
job_name: kubernetes-services
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: service
|
- role: service
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
- source_labels:
|
- source_labels:
|
||||||
- __meta_kubernetes_service_name
|
- __meta_kubernetes_service_name
|
||||||
target_label: service
|
target_label: service
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-pods
|
job_name: kubernetes-pods
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
|
@ -240,7 +240,7 @@
|
||||||
regex: Pending|Succeeded|Failed|Completed
|
regex: Pending|Succeeded|Failed|Completed
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-pods-slow
|
job_name: kubernetes-pods-slow
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
|
@ -285,7 +285,7 @@
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
scrape_interval: 5m
|
scrape_interval: 5m
|
||||||
scrape_timeout: 30s
|
scrape_timeout: 30s
|
||||||
- job_name: "node"
|
- job_name: "node"
|
||||||
scheme: https
|
scheme: https
|
||||||
basic_auth:
|
basic_auth:
|
||||||
username: metrics
|
username: metrics
|
||||||
|
@ -294,7 +294,7 @@
|
||||||
insecure_skip_verify: true
|
insecure_skip_verify: true
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["prod-db:9100", "prod-netflux:9100"]
|
- targets: ["prod-db:9100", "prod-netflux:9100"]
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- kubernetes_sd_configs:
|
- kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
|
|
Loading…
Reference in New Issue