hmm
This commit is contained in:
@@ -52,7 +52,7 @@ let
|
||||
name = "node-exporter-full.json";
|
||||
path = patchDashboard "node-exporter-full.json" (pkgs.fetchurl {
|
||||
url = "https://grafana.com/api/dashboards/1860/revisions/latest/download";
|
||||
sha256 = "sha256-pNgn6xgZBEu6LW0lc0cXX2gRkQ8lg/rer34SPE3yEl4=";
|
||||
sha256 = "sha256-mEWSdsTn1EKpW6xoJv/s0XST46EOoUPbDugQwyngIss=";
|
||||
}) "ds_prometheus";
|
||||
}
|
||||
{
|
||||
@@ -880,6 +880,16 @@ let
|
||||
# Inject ntfy credentials into Grafana's environment so the $__env{}
|
||||
# provider in contactPoints.yaml can resolve them at runtime.
|
||||
# The grafana.env template is managed by SOPS and owned by grafana:grafana.
|
||||
sops.templates."grafana.env" = {
|
||||
content = ''
|
||||
GRAFANA_NTFY_USER=${config.sops.placeholder."jallen-nas/ntfy/user"}
|
||||
GRAFANA_NTFY_PASSWORD=${config.sops.placeholder."jallen-nas/ntfy/password"}
|
||||
'';
|
||||
mode = "0400";
|
||||
owner = "grafana";
|
||||
restartUnits = [ "grafana.service" ];
|
||||
};
|
||||
|
||||
systemd.services.grafana.serviceConfig.EnvironmentFile = config.sops.templates."grafana.env".path;
|
||||
|
||||
# The redis exporter needs AF_INET to reach TCP Redis instances.
|
||||
|
||||
Reference in New Issue
Block a user