Add node and gogs metrics collection to prometheus

This commit is contained in:
2023-01-23 13:12:46 +01:00
parent a78f120a65
commit b4e74a3959
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
{ config, ... }: let
cfg = config.services.prometheus;
in {
services.prometheus.scrapeConfigs = [{
job_name = "git-gogs";
scheme = "https";
metrics_path = "/-/metrics";
static_configs = [
{
targets = [
"essendrop.pvv.ntnu.no:443"
];
}
];
}];
}