Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
monitor: example
alerting:
alertmanagers:
- follow_redirects: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets:
- localhost:9093
rule_files:
- /etc/prometheus/prometheus.rules.yml
- /etc/prometheus/rules/*.yml
- /etc/prometheus/rules/blackbox/*.yml
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- moonstone:9090
- job_name: node
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- moonstone:9100
- job_name: windows11
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- 192.168.0.70:9182
labels:
group: windows
- job_name: linux
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- moonstone:12345
labels:
group: linux
- job_name: windowsServer
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- 192.168.0.191:9182
labels:
group: windows
- job_name: nginx
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- 192.168.0.105:9113
labels:
group: nginx
- job_name: hyper-v Windows test server
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- 192.168.0.191:9123
labels:
group: python
- job_name: Python test application
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- localhost:8080
- job_name: alertMayhem
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- localhost:5000
- job_name: blackbox-healthz
honor_timestamps: true
params:
module:
- http_healthz
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /probe
scheme: http
follow_redirects: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: localhost:9115
action: replace
static_configs:
- targets:
- http://localhost:5000/healthz
- job_name: blackbox-eivjo.com
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 15s
scrape_timeout: 15s
metrics_path: /probe
scheme: http
follow_redirects: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: 127.0.0.1:9115
action: replace
static_configs:
- targets:
- http://eivjo.com
- https://test.eivjo.com
- https://test.eivjo.com/service/200
- https://prometheus.eivjo.com
- https://grafana.eivjo.com
- job_name: blackbox-politiet.no
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 15s
scrape_timeout: 15s
metrics_path: /probe
scheme: http
follow_redirects: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: 127.0.0.1:9115
action: replace
static_configs:
- targets:
- https://politiet.no
- https://nora.politiet.no
- job_name: snmp
honor_timestamps: true
params:
auth:
- public_v2
module:
- if_mib
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /snmp
scheme: http
follow_redirects: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: 127.0.0.1:9116
action: replace
static_configs:
- targets:
- 192.168.0.3
- job_name: snmp_exporter
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- localhost:9116
- job_name: opnsense
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- 192.168.0.1:9100
labels:
group: opnsense