diff config/scrape_recent.yaml @ 58:0064c490c33d

some tiny scrape configs for testing multi-node vmstorage/vmselect
author drewp@bigasterisk.com
date Fri, 26 Apr 2024 15:48:22 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/scrape_recent.yaml	Fri Apr 26 15:48:22 2024 -0700
@@ -0,0 +1,19 @@
+# see https://relabeler.promlabs.com/
+
+global:
+  scrape_interval: 1m
+  scrape_timeout: 10s
+
+
+scrape_configs:
+  # some based on https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus-kubernetes.yml
+
+  - job_name: "telegraf"
+    scheme: http
+    kubernetes_sd_configs: [{ role: node }]
+    relabel_configs:
+      - source_labels: [__address__]
+        regex: "(.*):(\\d+)"
+        target_label: __address__
+        replacement: "${1}:9273"
+        action: replace