VictoriaMetrics
VMAgent
Lightweight scraping agent that writes to VictoriaMetrics or any remote_write endpoint.
vmagent.yml
# vmagent scrape config — same format as Prometheus scrape_configs
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'node'
static_configs:
- targets: ['node-01:9100', 'node-02:9100']
# vmagent startup flags:
# /usr/bin/vmagent \
# -promscrape.config=/etc/vmagent/scrape.yml \
# -remoteWrite.url=http://victoria-metrics:8428/api/v1/write \
# -remoteWrite.tmpDataPath=/var/lib/vmagent/tmp \
# -httpListenAddr=:8429