Skip to content

Instantly share code, notes, and snippets.

@denisgolius
Created February 23, 2023 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denisgolius/10e97f5e6a41adfedc2a34c40282af80 to your computer and use it in GitHub Desktop.
Save denisgolius/10e97f5e6a41adfedc2a34c40282af80 to your computer and use it in GitHub Desktop.
vmagent systemd
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
WorkingDirectory=/var/lib/vmagent-remotewrite-data
ReadWritePaths=/var/lib/vmagent-remotewrite-data
ExecStart=/usr/bin/vmagent-prod -promscrape.config=/etc/victoriametrics/vmagent/prometheus.yml \
-remoteWrite.url=http://vmsingle:8428/api/v1/write \
-remoteWrite.tmpDataPath=/var/lib/vmagent-remotewrite-data"
-loggerOutput=stdout \
-loggerFormat=json
ExecStop=/bin/kill -s SIGTERM $MAINPID
StandardOutput=append:/var/log/victoriametrics/vmagent.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment