mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/prometheus: add monitoring
This commit is contained in:
parent
db8924bcc2
commit
0a58e0a8d0
3 changed files with 1563 additions and 0 deletions
|
@ -106,6 +106,11 @@ in
|
||||||
options.path = pkgs.grafana-dashboards.node-exporter;
|
options.path = pkgs.grafana-dashboards.node-exporter;
|
||||||
disableDeletion = true;
|
disableDeletion = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "Prometheus";
|
||||||
|
options.path = pkgs.grafana-dashboards.prometheus;
|
||||||
|
disableDeletion = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,15 @@ in
|
||||||
}).overrideAttrs (self: super: {
|
}).overrideAttrs (self: super: {
|
||||||
src = ./gitea.json; # sadly not yet updated to latest grafana
|
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 {
|
grafana = (buildGrafanaDashboard {
|
||||||
id = 3590;
|
id = 3590;
|
||||||
pname = "grafana";
|
pname = "grafana";
|
||||||
|
|
1549
pkgs/grafana-dashboards/prometheus.json
Normal file
1549
pkgs/grafana-dashboards/prometheus.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue