forked from natrontech/pbs-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-target.yaml
More file actions
37 lines (34 loc) · 937 Bytes
/
single-target.yaml
File metadata and controls
37 lines (34 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use Case: single Proxmox Backup Server
#
# Setup:
# - exporter instance: pbs-exporter:9101
# - PBS target set in env PBS_ENDPOINT
scrape_configs:
- job_name: 'pbs-exporter'
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- 'pbs-exporter:9101' # PBS_ENDPOINT set to target
# example with relablings to have the host name (e.g. host-001) as metric label "instance"
- job_name: 'pbs-exporter-relabel'
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- 'pbs-exporter@host-001' # PBS_ENDPOINT set to target
relabel_configs:
- source_labels: [ __address__ ]
regex: '.*@(.*)'
replacement: ${1}
target_label: instance
- source_labels: [ __address__ ]
regex: '(.*)@.*'
replacement: ${1}:9101
target_label: __address__