From 389becf9700d3dee7f09073ce4d235fc7c30b5c8 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 5 May 2024 14:28:31 +0300 Subject: 2024-05-05 --- modules/prometheus.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/prometheus.nix') diff --git a/modules/prometheus.nix b/modules/prometheus.nix index 9f28cd5..673f288 100644 --- a/modules/prometheus.nix +++ b/modules/prometheus.nix @@ -1,7 +1,9 @@ { config, + inputs, lib, libNginx, + this, ... }: with lib; @@ -49,5 +51,14 @@ in "--storage.tsdb.wal-compression" ]; }; + + topology = with cfg; { + nodes.${this.hostname}.services.prometheus = { + name = "Prometheus"; + icon = "${inputs.homelab-svg-assets}/assets/prometheus.svg"; + info = domain; + details.listen.text = "127.0.0.1:${toString port}"; + }; + }; }; } -- cgit v1.2.3