Merge pull request #172871 from waldheinz/prometheus-no-plugins

prometheus: fix build when all service discovery plugins are disabled
main
Lassulus 2 years ago committed by GitHub
commit f34acbd2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkgs/servers/monitoring/prometheus/default.nix

@ -55,6 +55,7 @@ buildGoModule rec {
# Enable only select service discovery to shrink binaries.
(
true # prevent bash syntax error when all plugins are disabled
${lib.optionalString (enableAWS)
"echo - github.com/prometheus/prometheus/discovery/aws"}
${lib.optionalString (enableAzure)

Loading…
Cancel
Save