Skip to content

Commit

Permalink
vmagent config rework
Browse files Browse the repository at this point in the history
  • Loading branch information
PringBlocks committed Mar 18, 2024
1 parent 2f885ca commit b7c1ac0
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions infra-apps/vmagent.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
scrape_configs:
- job_name: "switchboard-pods"
scrape_interval: 60s
kubernetes_sd_configs:
- role: pod
scheme: http
metrics_path: /metrics
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_should_scrape]
config:
scrape_configs:
- job_name: "switchboard-pods"
scrape_interval: 60s
kubernetes_sd_configs:
- role: pod
scheme: http
metrics_path: /metrics
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_should_scrape]
# regex: scrape
# action: keep
# - target_label: operator
# replacement: "$EXAMPLE_OPERATOR"


relabel_configs:
- action: keep
regex: scrape
action: keep
- target_label: operator
replacement: "$EXAMPLE_OPERATOR"
source_labels:
- __meta_kubernetes_pod_label_should_scrape
# - replacement: $EXAMPLE_OPERATOR
# target_label: operator
- action: replace
source_labels: []
target_label: operator
replacement: $EXAMPLE_OPERATOR

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

0 comments on commit b7c1ac0

Please sign in to comment.