[metrics] Gets Loki and Prometheus set up with Grafana

This commit is contained in:
2025-03-22 11:31:35 -07:00
parent 8833323b82
commit 55557f4fed
4 changed files with 48 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
{ config, pkgs, ... }:
let inherit (import ./lib.nix config) mkContainer; in
{ config, ... }:
let inherit (import ./lib.nix config) mkContainer blazestar; in
{
virtualisation.oci-containers.containers.prometheus = mkContainer {
image = "prom/prometheus";
hostName = "prometheus";
domain = blazestar;
port = 9090;
volumes = [
"/tank/config/prometheus:/etc/prometheus"
@@ -17,4 +18,4 @@ let inherit (import ./lib.nix config) mkContainer; in
description = "Prometheus monitoring";
};
};
}
}