Configuration
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
scrape_configs:
- job_name: file_sd
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
file_sd_configs:
- files:
- /etc/prometheus/file_sd/targets.json
refresh_interval: 5m
- job_name: node_exporter
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- s01.cfhn.it:9100
- 192.168.12.1:9100
metric_relabel_configs:
- source_labels: [__name__, mac]
separator: ;
regex: wifi_station_.*;(.{2}):(.{2}):(.{2}):(.{2}):(.{2}):(.{2})
target_label: mac_anon
replacement: ${4}:${5}:${6}
action: replace
- separator: ;
regex: mac
replacement: $1
action: labeldrop