Merge pull request #195703 from Ma27/bump-grafana

grafana: 9.1.7 -> 9.2.0

authored by Maximilian Bosch and committed by GitHub b55eefa3 266fd77b

+16 -7
+6
nixos/modules/services/monitoring/grafana.nix
··· 720 720 assertion = cfg.smtp.password != opt.smtp.password.default -> cfg.smtp.passwordFile == null; 721 721 message = "Cannot set both password and passwordFile"; 722 722 } 723 + { 724 + assertion = all 725 + ({ type, access, ... }: type == "prometheus" -> access != "direct") 726 + cfg.provision.datasources; 727 + message = "For datasources of type `prometheus`, the `direct` access mode is not supported anymore (since Grafana 9.2.0)"; 728 + } 723 729 ]; 724 730 725 731 systemd.services.grafana = {
+6 -3
nixos/tests/grafana.nix
··· 81 81 with subtest("Successful API query as admin user with sqlite db"): 82 82 sqlite.wait_for_unit("grafana.service") 83 83 sqlite.wait_for_open_port(3000) 84 + print(sqlite.succeed( 85 + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users -i" 86 + )) 84 87 sqlite.succeed( 85 - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" 88 + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep admin\@localhost" 86 89 ) 87 90 sqlite.shutdown() 88 91 ··· 92 95 postgresql.wait_for_open_port(3000) 93 96 postgresql.wait_for_open_port(5432) 94 97 postgresql.succeed( 95 - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" 98 + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep admin\@localhost" 96 99 ) 97 100 postgresql.shutdown() 98 101 ··· 102 105 mysql.wait_for_open_port(3000) 103 106 mysql.wait_for_open_port(3306) 104 107 mysql.succeed( 105 - "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep testadmin\@localhost" 108 + "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep admin\@localhost" 106 109 ) 107 110 mysql.shutdown() 108 111 '';
+4 -4
pkgs/servers/monitoring/grafana/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "grafana"; 5 - version = "9.1.7"; 5 + version = "9.2.0"; 6 6 7 7 excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" ]; 8 8 ··· 10 10 rev = "v${version}"; 11 11 owner = "grafana"; 12 12 repo = "grafana"; 13 - sha256 = "sha256-dlQlzX3aGZzBOb0V6ogB8yuoC8Dt18O8nKcJAQ9bfvs="; 13 + sha256 = "sha256-cfm+BfzSMtkDMkiDH7rsoh/tEofmqWhuUz1slk+FaOI="; 14 14 }; 15 15 16 16 srcStatic = fetchurl { 17 17 url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz"; 18 - sha256 = "sha256-ioXc9UfbNRz/RCdnFfaEDRxtamR8st9Wc1LQ6wdl8SE="; 18 + sha256 = "sha256-qJnqIog5DQXI8MAZtb2USkb5UwY7c05nDBt2mf13BJ8="; 19 19 }; 20 20 21 - vendorSha256 = "sha256-frY84+Tp9qVj9Xs9l0c0u1YyYywMbXO4KS0AF5mpnhQ="; 21 + vendorSha256 = "sha256-SYDkKB/D+uWHoeGAcYJmYxLhMOw458vkmFJlLbcrf2k="; 22 22 23 23 nativeBuildInputs = [ wire ]; 24 24