From 8b8497254f9cc83597278dff2824bf55957af545 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Wed, 3 Nov 2021 15:20:05 +0000
Subject: [PATCH] Monitoring/BlackBox: don't use literalExample where it's not
 needed

Thanks for the suggestion @jcalderone!
---
 nixos/modules/monitoring/server/prometheus.nix | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nixos/modules/monitoring/server/prometheus.nix b/nixos/modules/monitoring/server/prometheus.nix
index da612289..3bb00a5b 100644
--- a/nixos/modules/monitoring/server/prometheus.nix
+++ b/nixos/modules/monitoring/server/prometheus.nix
@@ -18,22 +18,22 @@ in {
   options.services.private-storage.monitoring.prometheus = {
     nodeExporterTargets = lib.mkOption {
       type = with lib.types; listOf str;
-      example = lib.literalExample "[ node1 node2 ]";
+      example = [ "node1" "node2" ];
       description = "List of nodes (hostnames or IPs) to scrape.";
     };
     nginxExporterTargets = lib.mkOption {
       type = with lib.types; listOf str;
-      example = lib.literalExample "[ node1 node2 ]";
+      example = [ "node1" "node2" ];
       description = "List of nodes (hostnames or IPs) to scrape.";
     };
     paymentExporterTargets = lib.mkOption {
       type = with lib.types; listOf str;
-      example = lib.literalExample "[ node1 node2 ]";
+      example = [ "node1" "node2" ];
       description = "List of nodes (hostnames or IPs) to scrape.";
     };
     blackboxExporterHttpsTargets = lib.mkOption {
       type = with lib.types; listOf str;
-      example = lib.literalExample "[ \"https://node1.com/\" \"https://node2.org/\" ]";
+      example = [ "https://node1.com/" "https://node2.org/" ];
       description = "List of https URLs to scrape.";
     };
   };
-- 
GitLab