-
Notifications
You must be signed in to change notification settings - Fork 1
/
values-prometheus.yaml
48 lines (42 loc) · 1.28 KB
/
values-prometheus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Disable all Prometheus services except "server", since they aren't required
# for the playground.
alertmanager:
enabled: false
kubeStateMetrics:
enabled: false
nodeExporter:
enabled: false
pushgateway:
enabled: false
server:
persistentVolume:
enabled: false
# | is required because extraScrapeConfigs is expected to be a string
extraScrapeConfigs: |
- job_name: 'kubernetes-pods-scrape-every-2s'
scrape_interval: 1s
kubernetes_sd_configs:
- role: pod
relabel_configs:
# Custom
- source_labels: [__meta_kubernetes_pod_annotation_ververica_com_scrape_every_2s]
action: keep
regex: true
# Boilerplate
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name