Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 5bd07b7

Browse files
committed
feat: [torrust#37] add new Prometheus job with new metrics endpoint
1 parent ac98486 commit 5bd07b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

share/container/default/config/prometheus.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ global:
22
scrape_interval: 15s # How often to scrape metrics
33

44
scrape_configs:
5-
- job_name: "tracker_metrics"
5+
- job_name: "tracker_stats"
66
metrics_path: "/api/v1/stats"
77
params:
88
token: ["MyAccessToken"]
99
format: ["prometheus"]
1010
static_configs:
1111
- targets: ["tracker:1212"]
1212

13+
- job_name: "tracker_metrics"
14+
metrics_path: "/api/v1/metrics"
15+
params:
16+
token: ["MyAccessToken"]
17+
format: ["prometheus"]
18+
static_configs:
19+
- targets: ["tracker:1212"]

0 commit comments

Comments
 (0)