diff options
Diffstat (limited to 'modules/nixos/monitoring/default.nix')
-rw-r--r-- | modules/nixos/monitoring/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/modules/nixos/monitoring/default.nix b/modules/nixos/monitoring/default.nix index 6cdc2c9..94fff67 100644 --- a/modules/nixos/monitoring/default.nix +++ b/modules/nixos/monitoring/default.nix @@ -63,11 +63,10 @@ in { # https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards dashboards.settings.providers = [ - # The System dashboard is imported manually from here[1]. Too bad - # provisioned dashboards cannot properly integrate dynamic datasources - # yet. - # - # [1]: https://grafana.com/grafana/dashboards/1860-node-exporter-full + { + name = "node"; + options.path = ./dashboards/node.json; + } { name = "endlessh"; options.path = ./dashboards/endlessh.json; @@ -84,6 +83,14 @@ in { name = "postgersql"; options.path = ./dashboards/postgresql.json; } + { + name = "redis"; + options.path = ./dashboards/redis.json; + } + { + name = "redis-streaming"; + options.path = ./dashboards/redis-streaming.json; + } ]; # https://grafana.com/docs/grafana/latest/administration/provisioning/#alerting @@ -210,6 +217,13 @@ in { } ]; + ruleFiles = [ + ./rules/nginx.yaml + ./rules/node.yaml + ./rules/postgres.yaml + ./rules/redis.yaml + ]; + alertmanagers = [ { scheme = "https"; |