base/grafana-alloy: clean up variable naming scheme

This commit is contained in:
2025-08-10 15:47:28 -07:00
parent d229055cfe
commit f6aecaa7e5

View File

@@ -8,8 +8,8 @@
}:
let
alloy_prometheus_endpoint = "http://log-01.tail755c5.ts.net:9090/api/v1/write";
alloy_loki_endpoint = "http://log-01.tail755c5.ts.net:3100/loki/api/v1/push";
alloyPrometheusEndpoint = "http://log-01.tail755c5.ts.net:9090/api/v1/write";
alloyLokiEndpoint = "http://log-01.tail755c5.ts.net:3100/loki/api/v1/push";
in
{
environment.systemPackages = with pkgs; [ grafana-alloy ];
@@ -29,7 +29,7 @@ in
// Default write target to log server
prometheus.remote_write "default" {
endpoint {
url = "${alloy_prometheus_endpoint}"
url = "${alloyPrometheusEndpoint}"
}
external_labels = {host = "${config.networking.hostName}"}
}
@@ -48,7 +48,7 @@ in
// ========== Default Loki configuration ==========
loki.write "default" {
endpoint {
url = "${alloy_loki_endpoint}"
url = "${alloyLokiEndpoint}"
}
external_labels = {host = "${config.networking.hostName}"}
}