Skip to content

Instantly share code, notes, and snippets.

@wryfi
Created February 9, 2018 20:13
Show Gist options
  • Save wryfi/24dd6e068943c2bc34d52961cf8736ba to your computer and use it in GitHub Desktop.
Save wryfi/24dd6e068943c2bc34d52961cf8736ba to your computer and use it in GitHub Desktop.
global:
scrape_interval: 15s
external_labels:
monitor: plos
scrape_configs:
- job_name: prometheus
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node resources'
scrape_interval: 15s
consul_sd_configs:
- server: localhost:8500
scheme: http
services:
- node_exporter
relabel_configs:
- source_labels: ['__meta_consul_node']
target_label: instance
- source_labels: ['__meta_consul_service']
target_label: service
- source_labels: ['__meta_consul_tags']
target_label: tags
params:
collect[]:
- cpu
- meminfo
- diskstats
- netdev
- netstat
- vmstat
- uname
- entropy
- timex
- edac
- conntrack
- arp
- sockstat
- ntp
- meminfo
- stat
- ipvs
- loadavg
- time
- job_name: 'node storage'
scrape_interval: 1m
consul_sd_configs:
- server: localhost
scheme: http
services:
- node_exporter
relabel_configs:
- source_labels: ['__meta_consul_node']
target_label: instance
- source_labels: ['__meta_consul_service']
target_label: service
- source_labels: ['__meta_consul_tags']
target_label: tags
params:
collect[]:
- filefd
- filesystem
- xfs
- hwmon
alerting:
alertmanagers:
- consul_sd_configs:
- server: localhost
services:
- alertmanager
scheme: http
rule_files:
- /etc/prometheus/rules/*.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment