Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # my global config
- global:
- scrape_interval: 15s # By default, scrape targets every 15 seconds.
- evaluation_interval: 15s # By default, scrape targets every 15 seconds.
- # scrape_timeout is set to the global default (10s).
- # Attach these labels to any time series or alerts when communicating with
- # external systems (federation, remote storage, Alertmanager).
- external_labels:
- monitor: 'tirn'
- # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
- rule_files:
- - 'alerts.rules'
- # - "first.rules"
- # - "second.rules"
- # Remote write configuration (for Graphite, OpenTSDB, or InfluxDB).
- remote_write:
- - url: "http://localhost:9201/write"
- # Remote read configuration (for InfluxDB only at the moment).
- remote_read:
- - url: "http://localhost:9201/read"
- # Definitions of targets to scrape
- scrape_configs:
- - job_name: 'prometheus'
- static_configs:
- - targets: ['localhost:9090']
- labels:
- instance: 'tirn'
- - job_name: 'node_exporter'
- basic_auth:
- username: "XXXXXXXXXXXX"
- password: "XXXXXXXXXXX"
- static_configs:
- - targets:
- - 'node.prometheus.tharan.simonszu.de'
- - 'openwrt:9100'
- - 'localhost:9100'
- - 'calad:9100'
- - 'estolad:9100'
- - 'nostor:9100'
- - 'dath:9100'
- relabel_configs:
- # Extract hostname and use it as instance name
- - source_labels: [__address__]
- regex: ([^:]+)(:9100)?
- target_label: instance
- replacement: ${1}
- # Completely replace instance name for tharan
- - source_labels: [__address__]
- regex: node\.prometheus\.tharan\.simonszu\.de
- target_label: instance
- replacement: tharan
- # Change instance name from localhost to tirn
- - source_labels: [instance]
- regex: localhost
- target_label: instance
- replacement: tirn
- - job_name: 'ping'
- metrics_path: /probe
- params:
- module: [ping]
- static_configs:
- - targets:
- - openwrt
- - freifunk
- - estolad
- - gigaset
- - firetv
- - tirn
- - calad
- - fritzbox
- - yamaha
- - hue
- - nostor
- - chromecast
- - atlasprobe
- - homematic
- - simonszu.de
- - sw-simon
- - sw-frauke
- - sw-tv
- - sw-schrank
- - sw-main
- - dath
- - wlan
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- # Rename instance for simonszu.de to tharan
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'http'
- metrics_path: /probe
- params:
- module: [http]
- static_configs:
- - targets:
- - openwrt
- - gigaset
- - fritzbox
- - yamaha
- - sw-simon
- - sw-frauke
- - sw-tv
- - sw-schrank
- - sw-main
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'ssh'
- metrics_path: /probe
- params:
- module: [ssh]
- static_configs:
- - targets:
- - openwrt
- - freifunk
- - estolad
- - calad
- - tirn
- - simonszu.de
- - nostor
- - dath
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}:22
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- # Rename instance for simonszu.de to tharan
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'xmpp'
- metrics_path: /probe
- params:
- module: [xmpp]
- static_configs:
- - targets:
- - simonszu.de
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}:5222
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- # Rename instance for simonszu.de to tharan
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'smtp'
- metrics_path: /probe
- params:
- module: [smtp]
- static_configs:
- - targets:
- - simonszu.de
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}:25
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- # Rename instance for simonszu.de to tharan
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'znc'
- metrics_path: /probe
- params:
- module: [znc]
- static_configs:
- - targets:
- - simonszu.de
- relabel_configs:
- # Set the target's address as the target-GET-parameter for the blackbox exporter
- - source_labels: [__address__]
- regex: (.*)
- target_label: __param_target
- replacement: ${1}:31337
- # Set the target's address as the instance name
- - source_labels: [__address__]
- regex: (.*)
- target_label: instance
- replacement: ${1}
- # Rename instance for simonszu.de to tharan
- - source_labels: [instance]
- regex: simonszu\.de
- target_label: instance
- replacement: tharan
- # Set the scrape address to the blackbox exporter
- - source_labels: []
- regex: .*
- target_label: __address__
- replacement: 127.0.0.1:9115
- - job_name: 'nginx'
- basic_auth:
- username: "XXXXXXXXXXX"
- password: "XXXXXXXXXXXXX"
- static_configs:
- - targets:
- - 'nginx.prometheus.tharan.simonszu.de'
- - 'estolad:9145'
- relabel_configs:
- # Extract hostname and use it as instance name
- - source_labels: [__address__]
- regex: ([^:]+)(:9100)?
- target_label: instance
- replacement: ${1}
- # Completely replace instance name for tharan
- - source_labels: [__address__]
- regex: nginx\.prometheus\.tharan\.simonszu\.de
- target_label: instance
- replacement: tharan
- - job_name: 'mysql'
- basic_auth:
- username: "XXXXXXXXXXX"
- password: "XXXXXXXXXXX"
- static_configs:
- - targets:
- - 'mysql.prometheus.tharan.simonszu.de'
- - 'estolad:9104'
- relabel_configs:
- # Extract hostname and use it as instance name
- - source_labels: [__address__]
- regex: ([^:]+)(:9104)?
- target_label: instance
- replacement: ${1}
- # Completely replace instance name for tharan
- - source_labels: [__address__]
- regex: mysql\.prometheus\.tharan\.simonszu\.de
- target_label: instance
- replacement: tharan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement