service/prometheus: add monitoring

This commit is contained in:
Felix Buehler 2023-04-16 17:28:23 +02:00
parent db8924bcc2
commit 0a58e0a8d0
3 changed files with 1563 additions and 0 deletions

View file

@ -106,6 +106,11 @@ in
options.path = pkgs.grafana-dashboards.node-exporter;
disableDeletion = true;
}
{
name = "Prometheus";
options.path = pkgs.grafana-dashboards.prometheus;
disableDeletion = true;
}
];
};

View file

@ -63,6 +63,15 @@ in
}).overrideAttrs (self: super: {
src = ./gitea.json; # sadly not yet updated to latest grafana
});
prometheus = (buildGrafanaDashboard {
id = 3662;
pname = "prometheus";
version = "2";
hash = "sha256-+nsi8/dYNvGVGV+ftfO1gSAQbO5GpZwW480T5mHMM4Q=";
}).overrideAttrs (self: super: {
src = ./prometheus.json; # sadly only imported dashboards work
});
grafana = (buildGrafanaDashboard {
id = 3590;
pname = "grafana";

File diff suppressed because it is too large Load diff