mirror of
https://github.com/prometheus-community/json_exporter
synced 2025-01-26 00:52:57 +00:00
0b34d68918
Signed-off-by: rustyclock <rustyclock@protonmail.com>
40 lines
801 B
YAML
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
|
|
|