Files
metricspi/package/victoriametrics/vmalert.service
Dustin C. Hatch d99c3b8f4c Merge victoriametrics and vmutils packages
There's no reason for these to be separate packages.  They come from the
same source tree, so having a single package makes more sense.  I only
separated them originally because I wasn't sure exactly how to express
the proper options in the kconfig language.
2022-06-28 17:13:53 -05:00

52 lines
1.1 KiB
Desktop File

[Unit]
Description=Victoria Metrics vmalert
Documentation=https://docs.victoriametrics.com/vmalert.html
Wants=network-online.target
After=network-online.target
[Service]
Type=exec
Environment=httpListenAddr=[::1]:8880
Environment=loggerDisableTimestamps=true
EnvironmentFile=-/etc/sysconfig/vmalert
ExecStart=/usr/bin/vmagent -enableTCP6 -envflag.enable
Restart=on-failure
User=victoriametrics
Group=victoriametrics
LimitNOFILE=1048576
CapabilityBoundingSet=
DeviceAllow=
DevicePolicy=closed
DynamicUser=yes
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