mirror of
https://github.com/ItsDrike/network-monitor.git
synced 2024-11-13 21:17:16 +00:00
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
scrape_timeout: 10s
|
|
external_labels:
|
|
monitor: 'Alertmanager'
|
|
|
|
rule_files:
|
|
- 'alert.rules'
|
|
|
|
scrape_configs:
|
|
- job_name: 'prometheus'
|
|
scrape_interval: 5s
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
- job_name: 'speedtest'
|
|
metrics_path: /metrics
|
|
scrape_interval: 30m # How often should we run speed tests
|
|
scrape_timeout: 60s # running speedtest needs time to complete
|
|
static_configs:
|
|
- targets: ['speedtest:9798']
|
|
|
|
- job_name: 'ping'
|
|
metrics_path: /probe
|
|
scrape_interval: 5s # How often should we probe the pinghosts
|
|
params:
|
|
module: [http_2xx] # Look for a HTTP 200 response.
|
|
file_sd_configs:
|
|
- files:
|
|
- pinghosts.yaml
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
regex: '(.*);(.*);(.*)' # first is the url, thus unique for instance
|
|
target_label: instance
|
|
replacement: $1
|
|
- source_labels: [__address__]
|
|
regex: '(.*);(.*);(.*)' # second is humanname to use in charts
|
|
target_label: humanname
|
|
replacement: $2
|
|
- source_labels: [__address__]
|
|
regex: '(.*);(.*);(.*)' # third specifies external or internal network
|
|
target_label: routing
|
|
replacement: $3
|
|
- source_labels: [instance]
|
|
target_label: __param_target
|
|
- target_label: __address__
|
|
replacement: ping:9115 # The blackbox exporter's real hostname:port.
|
|
|
|
- job_name: 'nodeexp'
|
|
static_configs:
|
|
- targets: ['nodeexp:9100']
|