forked from Drift/pvv-nixos-config
Add node and gogs metrics collection to prometheus
This commit is contained in:
16
hosts/ildkule/services/metrics/prometheus/gogs.nix
Normal file
16
hosts/ildkule/services/metrics/prometheus/gogs.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}];
|
||||
}
|
Reference in New Issue
Block a user