Add PureGym Prometheus stats (#28)

This commit is contained in:
Patrick Stevens
2024-02-12 22:52:07 +00:00
committed by GitHub
parent e879dbcd60
commit 6f4bc26313
6 changed files with 259 additions and 37 deletions

View File

@@ -52,6 +52,18 @@
};
scrapeConfigs = [
{
job_name = "gym-fullness";
static_configs = [
{
# Gym 19 is London Oval
targets = ["localhost:${toString config.services.puregym-config.port}"];
}
];
params = { gym_id = ["19"]; };
metrics_path = "/fullness-prometheus";
scrape_interval = "5m";
}
{
job_name = "node";
static_configs = [