From 5f44bfc59b06d60b5d6a6b6cc0006fb0b3d92af5 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 13 Sep 2025 15:20:55 +0200 Subject: [PATCH] nixos/grafana: document how to enable drilldown when using custom plugins IMHO, it's a bit surprising that drilldown doesn't show anything when using `declarativePlugins` (and thus, the four apps are missing). Add instructions on how to get these apps back. --- nixos/modules/services/monitoring/grafana.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index 8a849ad4022b..9aad9e21fa6e 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -414,7 +414,14 @@ in declarativePlugins = mkOption { type = with types; nullOr (listOf path); default = null; - description = "If non-null, then a list of packages containing Grafana plugins to install. If set, plugins cannot be manually installed."; + description = '' + If non-null, then a list of packages containing Grafana plugins to install. If set, plugins cannot + be manually installed. + + Keep in mind that this turns off drilldown: for this to work, you need to add + `grafana-metricsdrilldown-app`, `grafana-lokiexplore-app`, `grafana-exploretraces-app` + and `grafana-pyroscope-app` to this option. + ''; example = literalExpression "with pkgs.grafanaPlugins; [ grafana-piechart-panel ]"; # Make sure each plugin is added only once; otherwise building # the link farm fails, since the same path is added multiple