diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-11-06 17:00:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 17:00:47 +0100 |
commit | 68726901e155c10c92941c58aee522a8a385d69a (patch) | |
tree | 362fc661eedf8ceba92465d5e883bfff5a9cb01e /nixos/modules/services/monitoring/prometheus/exporters.nix | |
parent | 42e6157599970da34958a782251d05de7e4319fd (diff) | |
parent | 428fc4e297093eefa5a17689a3a9e9a6b8b7f154 (diff) | |
download | nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar.gz nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar.bz2 nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar.lz nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar.xz nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.tar.zst nixpkgs-68726901e155c10c92941c58aee522a8a385d69a.zip |
Merge pull request #94673 from justinas/prom-sql-exporter
prometheus-sql-exporter: init at 0.3.0
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/exporters.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters.nix b/nixos/modules/services/monitoring/prometheus/exporters.nix index a4aa470f5bc..995afca96ff 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters.nix @@ -45,6 +45,7 @@ let "rspamd" "rtl_433" "snmp" + "sql" "surfboard" "tor" "unifi" @@ -218,6 +219,14 @@ in Please specify either 'services.prometheus.exporters.mail.configuration' or 'services.prometheus.exporters.mail.configFile'. ''; + } { + assertion = cfg.sql.enable -> ( + (cfg.sql.configFile == null) != (cfg.sql.configuration == null) + ); + message = '' + Please specify either 'services.prometheus.exporters.sql.configuration' or + 'services.prometheus.exporters.sql.configFile' + ''; } ]; }] ++ [(mkIf config.services.minio.enable { services.prometheus.exporters.minio.minioAddress = mkDefault "http://localhost:9000"; |