Skip to content

Instantly share code, notes, and snippets.

@kelein
Created February 1, 2018 08:28
Show Gist options
  • Save kelein/555799e9beeee5c173690c269c597d09 to your computer and use it in GitHub Desktop.
Save kelein/555799e9beeee5c173690c269c597d09 to your computer and use it in GitHub Desktop.
Prometheus Horizontal Sharding Configuration
global:
scrape_interval: 15s
external_labels:
monitor: 'prome-master'
scrape_configs:
- job_name: federate
honor_labels: true
metrics_path: /federate
params:
'match[]':
- '{__name__=~".+"}'
static_configs:
- targets: [
"prome-salve-01:9090",
"prome-slave-02:9090",
"prome-slave-03:9090"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment