Skip to content

Commit b7c1ac0

Browse files
committed
vmagent config rework
1 parent 2f885ca commit b7c1ac0

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

infra-apps/vmagent.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
scrape_configs:
2-
- job_name: "switchboard-pods"
3-
scrape_interval: 60s
4-
kubernetes_sd_configs:
5-
- role: pod
6-
scheme: http
7-
metrics_path: /metrics
8-
relabel_configs:
9-
- source_labels: [__meta_kubernetes_pod_label_should_scrape]
1+
config:
2+
scrape_configs:
3+
- job_name: "switchboard-pods"
4+
scrape_interval: 60s
5+
kubernetes_sd_configs:
6+
- role: pod
7+
scheme: http
8+
metrics_path: /metrics
9+
# relabel_configs:
10+
# - source_labels: [__meta_kubernetes_pod_label_should_scrape]
11+
# regex: scrape
12+
# action: keep
13+
# - target_label: operator
14+
# replacement: "$EXAMPLE_OPERATOR"
15+
16+
17+
relabel_configs:
18+
- action: keep
1019
regex: scrape
11-
action: keep
12-
- target_label: operator
13-
replacement: "$EXAMPLE_OPERATOR"
20+
source_labels:
21+
- __meta_kubernetes_pod_label_should_scrape
22+
# - replacement: $EXAMPLE_OPERATOR
23+
# target_label: operator
24+
- action: replace
25+
source_labels: []
26+
target_label: operator
27+
replacement: $EXAMPLE_OPERATOR
1428

1529
remoteWriteUrls:
16-
- "http://remote-write.switchboard.xyz/insert/0/prometheus"
30+
- "https://remote-write.switchboard.xyz/api/v1/write"

0 commit comments

Comments
 (0)