nixpkgs/nixos/modules/services/monitoring
emilylange 100c1501e1
nixos/loki: skip config validation when it's impossible to validate
This is a follow-up to 8d7f3c9dbd and
ae48735c53.

Running the config validation in the build sandbox is impossible and
will fail when using `cfg.configFile` or `-config.expand-env=true`.

`cfg.configFile` is a string of a path which is simply not available to
the build sandbox.

Similarly, one may opt to use `cfg.configuration` with environment
variables in combination with `-config.expand-env=true`.

The environment variables referenced that way are also not available
in the build sandbox.

So we skip the validation when it's impossible (`cfg.configFile`) or
likely impossible (`-config.expand-env=true`).

An alternative approach would be something like nixos/prometheus'
`services.prometheus.checkConfig` that takes a boolean and makes
toggling the config validation user-facing.
2024-05-19 05:15:26 +02:00
..
prometheus Merge pull request #308796 from 0xB10C/2024-05-promethues-bitcoin-exporter-expose-package 2024-05-03 23:09:17 +02:00
alerta.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
apcupsd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
arbtt.nix arbtt: remove michaeplj as maintainer 2024-05-13 10:56:59 +01:00
below.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
bosun.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
cadvisor.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
certspotter.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
certspotter.nix treewide: replace mkPackageOptionMD with mkPackageOption 2023-11-30 19:03:14 +01:00
cockpit.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
collectd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
das_watchdog.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
datadog-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
do-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
fusion-inventory.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
goss.md treewide: Mark Nix blocks in markdown as Nix 2024-03-28 09:28:12 +01:00
goss.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
grafana-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
grafana-image-renderer.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
grafana-reporter.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
grafana.nix treewide: nuke remaining mdDoc leftovers 2024-04-15 20:12:24 +03:00
graphite.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
hdaps.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
heapster.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
incron.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
kapacitor.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
karma.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
kthxbye.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
librenms.nix nixos/librenms: init 2023-10-16 13:28:22 +02:00
loki.nix nixos/loki: skip config validation when it's impossible to validate 2024-05-19 05:15:26 +02:00
longview.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
mackerel-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
metricbeat.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
mimir.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
monit.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
munin.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
nagios.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
netdata.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
nezha-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
ocsinventory-agent.md nixos/ocsinventory-agent: init 2023-11-02 14:20:45 +01:00
ocsinventory-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
opentelemetry-collector.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
osquery.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
parsedmarc.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
parsedmarc.nix nixos/parsedmarc: Fix smtp.to and default elasticsearch url 2024-04-27 04:55:52 +02:00
riemann-dash.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
riemann-tools.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
riemann.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
rustdesk-server.nix Merge pull request #283298 from mkg20001/rustdesk-dynamic 2024-04-24 20:03:44 +02:00
scollector.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
scrutiny.nix nixos/scrutiny: Order scrutiny-collector after scrutiny 2024-03-18 16:30:51 +01:00
smartd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
snmpd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
statsd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
sysstat.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
teamviewer.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
telegraf.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
thanos.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tremor-rs.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tuptime.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
unpoller.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
ups.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
uptime-kuma.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
uptime.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
vmagent.nix nixos/vmagent: use dynamic user and cache directory 2024-04-28 13:55:47 +02:00
vmalert.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
vnstat.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
watchdogd.nix nixos/watchdog: add module 2024-01-20 00:15:31 +01:00
zabbix-agent.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
zabbix-proxy.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
zabbix-server.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00