-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathprometheus.yml
37 lines (35 loc) · 1.08 KB
/
prometheus.yml
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
scrape_configs:
- job_name: "klipper"
scrape_interval: 5s
metrics_path: /probe
static_configs:
- targets: [ 'klipper-host:7125' ] # the klipper host
params:
modules: [
'process_stats',
'network_stats',
'system_info',
'job_queue',
'directory_info',
'printer_objects',
'history',
'spoolman',
]
# Enable API Key authentication.
# Only set one of `credentials` or `credentials_file`
# authorization:
# type: APIKEY
# credentials: '<apikey>'
# credentials_file: `/path/to/private/apikey.txt`
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: klipper-exporter:9101 # host where the klipper-exporter is running
- job_name: "klipper-exporter"
scrape_interval: 5s
metrics_path: /metrics
static_configs:
- targets: [ 'klipper-exporter:9101' ] # host where the klipper-exporter is running