[Unit] Description=Victoria Metrics vmalert Documentation=https://docs.victoriametrics.com/vmalert.html Wants=network-online.target After=network-online.target [Service] Type=exec Environment=datasource_url=http://localhost:8428 Environment=notifier_url=http://localhost:9093 Environment=httpListenAddr=[::1]:8880 Environment=loggerDisableTimestamps=true Environment=rule=/etc/victoria-metrics/rules/*.yml EnvironmentFile=-/etc/sysconfig/vmalert ExecStart=/usr/bin/vmalert -enableTCP6 -envflag.enable Restart=on-failure DynamicUser=yes CapabilityBoundingSet= DeviceAllow= DevicePolicy=closed IPAddressAllow=localhost IPAddressDeny=any LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes PrivateDevices=yes PrivateUsers=yes PrivateTmp=yes ProcSubset=pid ProtectClock=yes ProtectControlGroups=yes ProtectHome=yes ProtectHostname=yes ProtectKernelLogs=yes ProtectKernelModules=yes ProtectKernelTunables=yes ProtectProc=invisible ProtectSystem=strict RestrictAddressFamilies=AF_INET AF_INET6 RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes SystemCallArchitectures=native SystemCallFilter=@system-service SystemCallFilter=~@privileged @resources UMask=0027 [Install] WantedBy=multi-user.target