Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets:
- 127.0.0.1:9093
rule_files:
- /etc/prometheus/alerts.yml
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- 127.0.0.1:9090
- job_name: node
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- 127.0.0.1:9100
labels:
role: monitoring
vm: monitor
- targets:
- 192.168.1.200:9100
labels:
role: ispconfig
vm: wolfware
- targets:
- 192.168.1.50:9100
labels:
role: odoo
vm: erp
- targets:
- 192.168.1.40:9100
labels:
role: postgres
vm: pg
- targets:
- 192.168.1.70:9100
labels:
role: nextcloud
vm: cloud
- targets:
- 192.168.1.60:9100
labels:
role: gitlab
vm: git
- targets:
- 192.168.1.80:9100
labels:
role: search
vm: search
- targets:
- 192.168.1.95:9100
labels:
role: llm
vm: lala
- targets:
- 192.168.1.30:9100
labels:
role: docker
vm: docker
- targets:
- 192.168.1.90:9100
labels:
role: keycloak-host
vm: auth
- targets:
- 192.168.1.75:9100
labels:
role: jenkins
vm: ci
- job_name: keycloak
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- 192.168.1.90:8080
labels:
name: keycloak (auth)
vm: auth
- job_name: blackbox
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- 127.0.0.1:9115
- job_name: probe_http
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /probe
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [name]
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://auth.bosspacific.com.au
labels:
name: keycloak (auth.bosspacific.com.au)
- targets:
- https://git.bosspacific.com.au
labels:
name: gitlab (git.bosspacific.com.au)
- targets:
- https://cloud.bosspacific.com.au
labels:
name: nextcloud (cloud.bosspacific.com.au)
- targets:
- http://192.168.1.50:8069
labels:
name: odoo (192.168.1.50)
- targets:
- http://192.168.1.75:8080
labels:
name: jenkins (192.168.1.75)
- job_name: probe_tcp
honor_timestamps: true
params:
module:
- tcp_connect
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /probe
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [name]
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:
- 192.168.1.40:5432
labels:
name: postgres (pg 192.168.1.40)
- targets:
- 192.168.1.75:22
labels:
name: ci host (jenkins 192.168.1.75)
- targets:
- 192.168.1.95:22
labels:
name: lala host (llm 192.168.1.95)
- targets:
- 192.168.1.80:22
labels:
name: search host (192.168.1.80)
- targets:
- 192.168.1.30:22
labels:
name: docker host (192.168.1.30)
- targets:
- 192.168.1.50:22
labels:
name: erp host (192.168.1.50)
- targets:
- 192.168.1.60:22
labels:
name: git host (192.168.1.60)
- targets:
- 192.168.1.70:22
labels:
name: cloud host (192.168.1.70)
- targets:
- 192.168.1.90:22
labels:
name: auth host (192.168.1.90)