Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
monitor: servers
alerting:
alertmanagers:
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets:
- localhost:9093
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9090
- job_name: XERVERS Linux Servers
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: 185.219.128.254:9100
target_label: instance
replacement: Directadmin
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.250:9100
target_label: instance
replacement: NextCloud
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.249:9100
target_label: instance
replacement: FreePBX
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.228:9100
target_label: instance
replacement: KMS
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.230:9100
target_label: instance
replacement: TenantOS
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.240:9100
target_label: instance
replacement: Nameserver 1
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.241:9100
target_label: instance
replacement: Nameserver 2
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.251:9100
target_label: instance
replacement: Proxmox Mail Gateway
action: replace
static_configs:
- targets:
- 185.219.128.254:9100
- 185.219.128.250:9100
- 185.219.128.249:9100
- 185.219.128.228:9100
- 185.219.128.230:9100
- 185.219.128.240:9100
- 185.219.128.241:9100
- 185.219.128.251:9100
- job_name: XERVERS Windows Servers
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: 193.109.188.75:9182
target_label: instance
replacement: Windows Management
action: replace
- source_labels: [__address__]
separator: ;
regex: 185.219.128.226:9182
target_label: instance
replacement: Iperius Backup Server
action: replace
static_configs:
- targets:
- 193.109.188.75:9182
- 185.219.128.226:9182
- job_name: XERVERS Routers
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: 192.168.1.241:9100
target_label: instance
replacement: R1
action: replace
- source_labels: [__address__]
separator: ;
regex: 192.168.1.242:9100
target_label: instance
replacement: R2
action: replace
- source_labels: [__address__]
separator: ;
regex: 192.168.1.243:9100
target_label: instance
replacement: R3
action: replace
- source_labels: [__address__]
separator: ;
regex: 192.168.1.244:9100
target_label: instance
replacement: R4
action: replace
static_configs:
- targets:
- 192.168.1.241:9100
- 192.168.1.242:9100
- 192.168.1.243:9100
- 192.168.1.244:9100