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

Commit fd1e279

Browse files
committed
Merge torrust#58: feat: Add new Prometheus job with new metrics endpoint
5bd07b7 feat: [torrust#37] add new Prometheus job with new metrics endpoint (Jose Celano) Pull request description: Add new Prometheus job with new metrics endpoint. ACKs for top commit: josecelano: ACK 5bd07b7 Tree-SHA512: 0a4c68ee0c73a46f0f61e0157ba351be8ac806163d15c3ab4106346abdab598eb9984949920c637ee27a7cf65592e9683e2ee2c322fee35fa483eec8035ee491
2 parents ac98486 + 5bd07b7 commit fd1e279

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)