json_exporter/examples/prometheus.yml
rustyclock 0b34d68918
Add example prometheus config
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-04 15:37:28 +09:00

40 lines
801 B
YAML

global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
api_version: v1
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
static_configs:
- targets:
- localhost:9090
- localhost:7979
- job_name: json_exporter
honor_timestamps: true
scrape_interval: 5s
metrics_path: /probe
scheme: http
static_configs:
- targets:
- localhost:7979
params:
target: ["http://localhost:8000/examples/data.json"]
relabel_configs:
- source_labels: [__param_target]
target_label: endpoint
action: replace