nixpkgs/nixos/modules/services/monitoring
Florian Klink 5d094c2338 nixos/alloy: set After=network.target
This prevents the network from being torn down before alloy itself it
stopped.

Alloy tries to flush its WAL on SIGTERM, and if the network stack is
already down, it tries to flush logs up to 90s during shutdown/reboot.

From https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/:

> network.target has very little meaning during start-up. It only
> indicates that the network management stack is up after it has been
> reached. Whether any network interfaces are already configured when
> it is reached is undefined. Its primary purpose is for ordering
> things properly at shutdown: since the shutdown ordering of units in
> systemd is the reverse of the startup ordering, any unit that is order
> After=network.target can be sure that it is stopped before the network
> is shut down if the system is powered off. This allows services to
> cleanly terminate connections before going down, instead of abruptly
> losing connectivity for ongoing connections, leaving them in an
> undefined state. […]
2025-04-18 23:38:44 +02:00
..
prometheus prometheus-ecoflow-exporter: init ecoflow nixos module integration (#395428) 2025-04-04 11:24:56 +02:00
alerta.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
alloy.nix nixos/alloy: set After=network.target 2025-04-18 23:38:44 +02:00
amazon-cloudwatch-agent.nix nixos/amazon-cloudwatch-agent: condense module options 2025-02-15 15:13:15 -05:00
apcupsd.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
arbtt.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
below.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
bosun.nix nixos/bosun: fix documentation link formatting 2025-02-12 21:03:21 +01:00
cadvisor.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
certspotter.md
certspotter.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
cockpit.nix cockpit: format 2025-04-15 11:54:12 -03:00
collectd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
das_watchdog.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
datadog-agent.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
do-agent.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
fluent-bit.nix fluent-bit: link against Nix dependencies, fix Darwin builds, and add NixOS module 2025-03-19 18:48:46 -04:00
fusion-inventory.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
gatus.nix nixos/gatus: init module 2024-09-19 21:34:10 +02:00
gitwatch.nix nixos/gitwatch: fix module accounting 2024-12-03 09:59:28 +03:00
glances.md nixos/glances: init module 2024-11-13 00:06:47 +01:00
glances.nix treewide: add documentation for nixos systemd units 2025-03-12 18:00:38 +01:00
glpi-agent.nix nixos/glpi-agent: fix missing directory 2025-02-12 15:58:03 +01:00
goss.md
goss.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
grafana-image-renderer.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
grafana-reporter.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
grafana-to-ntfy.nix nixos/grafana-to-nfy: init 2025-02-03 02:17:26 +02:00
grafana.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
graphite.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
hdaps.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
heapster.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
incron.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
kapacitor.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
karma.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
kthxbye.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
librenms.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
loki.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
longview.nix nixos/longview: fix documentation link formatting 2025-02-12 21:03:21 +01:00
mackerel-agent.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
metricbeat.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
mimir.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
monit.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
munin.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nagios.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
netdata.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
nezha-agent.nix nixos/nezha-agent: refactor 2025-03-04 18:08:04 +08:00
ocsinventory-agent.md
ocsinventory-agent.nix nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244) 2025-03-08 08:41:08 +00:00
opentelemetry-collector.nix nixos/opentelemetry-collector: fix documentation link formatting 2025-02-12 21:03:21 +01:00
osquery.nix nixos/osquery: fix database_path + logger_path opts per systemd docs (#370003) 2025-03-04 14:51:12 +01:00
parsedmarc.md
parsedmarc.nix nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244) 2025-03-08 08:41:08 +00:00
pgscv.nix nixos/pgscv: init 2025-03-02 08:39:29 +03:00
riemann-dash.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
riemann-tools.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
riemann.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
rustdesk-server.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
scollector.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
scrutiny.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
smartd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
snmpd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
statsd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
sysstat.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
teamviewer.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
telegraf.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
thanos.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
todesk.nix nixos/todesk: init 2024-09-01 17:19:09 +08:00
traccar.nix traccar: init at 6.5 2024-12-04 11:00:43 +01:00
tremor-rs.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
tuptime.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
unpoller.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
ups.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
uptime-kuma.nix nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244) 2025-03-08 08:41:08 +00:00
uptime.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
vmagent.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
vmalert.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
vnstat.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
watchdogd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
zabbix-agent.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
zabbix-proxy.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
zabbix-server.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00