mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-03 20:39:32 -05:00
This takes the modulus of a hash of some labels. Combined with a keep relabel action, this allows for sharding of targets across multiple prometheus servers.
5 lines
108 B
YAML
5 lines
108 B
YAML
scrape_configs:
|
|
- job_name: prometheus
|
|
relabel_configs:
|
|
- regex: abcdef
|
|
action: hashmod
|