chore(prometheus): update config from Helm chart
This commit is contained in:
parent
924b9d48d1
commit
85821572ce
|
@ -1,3 +1,6 @@
|
||||||
|
# This file is based on the default configuration file generated by the
|
||||||
|
# Prometheus helm chart. It is overridden here to avoid re-inflating the Helm
|
||||||
|
# chart to update configuration.
|
||||||
global:
|
global:
|
||||||
evaluation_interval: 1m
|
evaluation_interval: 1m
|
||||||
scrape_interval: 1m
|
scrape_interval: 1m
|
||||||
|
@ -87,7 +90,7 @@ scrape_configs:
|
||||||
- __meta_kubernetes_service_annotation_prometheus_io_path
|
- __meta_kubernetes_service_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (.+?)(?::\d+)?;(\d+)
|
||||||
replacement: $1:$2
|
replacement: $1:$2
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
- __address__
|
||||||
|
@ -130,7 +133,7 @@ scrape_configs:
|
||||||
- __meta_kubernetes_service_annotation_prometheus_io_path
|
- __meta_kubernetes_service_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (.+?)(?::\d+)?;(\d+)
|
||||||
replacement: $1:$2
|
replacement: $1:$2
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
- __address__
|
||||||
|
@ -217,11 +220,18 @@ scrape_configs:
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
|
||||||
replacement: $1:$2
|
replacement: '[$2]:$1'
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
|
target_label: __address__
|
||||||
|
- action: replace
|
||||||
|
regex: (\d+);((([0-9]+?)(\.|$)){4})
|
||||||
|
replacement: $2:$1
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
- action: labelmap
|
- action: labelmap
|
||||||
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
||||||
|
@ -240,6 +250,10 @@ scrape_configs:
|
||||||
regex: Pending|Succeeded|Failed|Completed
|
regex: Pending|Succeeded|Failed|Completed
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
|
- action: replace
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_node_name
|
||||||
|
target_label: node
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-pods-slow
|
job_name: kubernetes-pods-slow
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
|
@ -260,11 +274,18 @@ scrape_configs:
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
|
||||||
replacement: $1:$2
|
replacement: '[$2]:$1'
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
|
target_label: __address__
|
||||||
|
- action: replace
|
||||||
|
regex: (\d+);((([0-9]+?)(\.|$)){4})
|
||||||
|
replacement: $2:$1
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
- action: labelmap
|
- action: labelmap
|
||||||
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
||||||
|
@ -283,6 +304,10 @@ scrape_configs:
|
||||||
regex: Pending|Succeeded|Failed|Completed
|
regex: Pending|Succeeded|Failed|Completed
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
|
- action: replace
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_node_name
|
||||||
|
target_label: node
|
||||||
scrape_interval: 5m
|
scrape_interval: 5m
|
||||||
scrape_timeout: 30s
|
scrape_timeout: 30s
|
||||||
alerting:
|
alerting:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# This file is based on the default configuration file generated by the
|
||||||
|
# Prometheus helm chart. It is overridden here to avoid re-inflating the Helm
|
||||||
|
# chart to update configuration.
|
||||||
global:
|
global:
|
||||||
evaluation_interval: 1m
|
evaluation_interval: 1m
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
|
@ -87,7 +90,7 @@ scrape_configs:
|
||||||
- __meta_kubernetes_service_annotation_prometheus_io_path
|
- __meta_kubernetes_service_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (.+?)(?::\d+)?;(\d+)
|
||||||
replacement: $1:$2
|
replacement: $1:$2
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
- __address__
|
||||||
|
@ -130,7 +133,7 @@ scrape_configs:
|
||||||
- __meta_kubernetes_service_annotation_prometheus_io_path
|
- __meta_kubernetes_service_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (.+?)(?::\d+)?;(\d+)
|
||||||
replacement: $1:$2
|
replacement: $1:$2
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
- __address__
|
||||||
|
@ -217,11 +220,18 @@ scrape_configs:
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
|
||||||
replacement: $1:$2
|
replacement: '[$2]:$1'
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
|
target_label: __address__
|
||||||
|
- action: replace
|
||||||
|
regex: (\d+);((([0-9]+?)(\.|$)){4})
|
||||||
|
replacement: $2:$1
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
- action: labelmap
|
- action: labelmap
|
||||||
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
||||||
|
@ -240,6 +250,10 @@ scrape_configs:
|
||||||
regex: Pending|Succeeded|Failed|Completed
|
regex: Pending|Succeeded|Failed|Completed
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
|
- action: replace
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_node_name
|
||||||
|
target_label: node
|
||||||
- honor_labels: true
|
- honor_labels: true
|
||||||
job_name: kubernetes-pods-slow
|
job_name: kubernetes-pods-slow
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
|
@ -260,11 +274,18 @@ scrape_configs:
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
- __meta_kubernetes_pod_annotation_prometheus_io_path
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
- action: replace
|
- action: replace
|
||||||
regex: ([^:]+)(?::\d+)?;(\d+)
|
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
|
||||||
replacement: $1:$2
|
replacement: '[$2]:$1'
|
||||||
source_labels:
|
source_labels:
|
||||||
- __address__
|
|
||||||
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
|
target_label: __address__
|
||||||
|
- action: replace
|
||||||
|
regex: (\d+);((([0-9]+?)(\.|$)){4})
|
||||||
|
replacement: $2:$1
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_annotation_prometheus_io_port
|
||||||
|
- __meta_kubernetes_pod_ip
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
- action: labelmap
|
- action: labelmap
|
||||||
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
|
||||||
|
@ -283,6 +304,10 @@ scrape_configs:
|
||||||
regex: Pending|Succeeded|Failed|Completed
|
regex: Pending|Succeeded|Failed|Completed
|
||||||
source_labels:
|
source_labels:
|
||||||
- __meta_kubernetes_pod_phase
|
- __meta_kubernetes_pod_phase
|
||||||
|
- action: replace
|
||||||
|
source_labels:
|
||||||
|
- __meta_kubernetes_pod_node_name
|
||||||
|
target_label: node
|
||||||
scrape_interval: 5m
|
scrape_interval: 5m
|
||||||
scrape_timeout: 30s
|
scrape_timeout: 30s
|
||||||
- job_name: "node"
|
- job_name: "node"
|
||||||
|
|
Loading…
Reference in New Issue