view 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 source

# 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