summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/grafana.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2022-06-13 07:01:19 +0200
committerGitHub <noreply@github.com>2022-06-13 07:01:19 +0200
commit7f9a78e1979a35cffac617c521b98e08f89198de (patch)
treef0faf67b361a05df07a09409846509c301350125 /nixos/modules/services/monitoring/grafana.nix
parent0d627e417fc31efdf4ca834d0a5b629158aae08b (diff)
parent81291cc793cf88bd6eff3fd8512e5eb9d037066c (diff)
downloadnixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar.gz
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar.bz2
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar.lz
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar.xz
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.tar.zst
nixpkgs-7f9a78e1979a35cffac617c521b98e08f89198de.zip
Merge pull request #175330 from jtojnar/grafana-uid
nixos/grafana: Allow setting UID for datasource
Diffstat (limited to 'nixos/modules/services/monitoring/grafana.nix')
-rw-r--r--nixos/modules/services/monitoring/grafana.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix
index 497d4674138..68b4796f4f4 100644
--- a/nixos/modules/services/monitoring/grafana.nix
+++ b/nixos/modules/services/monitoring/grafana.nix
@@ -124,6 +124,11 @@ let
         default = 1;
         description = "Org id. will default to orgId 1 if not specified.";
       };
+      uid = mkOption {
+        type = types.nullOr types.str;
+        default = null;
+        description = "Custom UID which can be used to reference this datasource in other parts of the configuration, if not specified will be generated automatically.";
+      };
       url = mkOption {
         type = types.str;
         description = "Url of the datasource.";