Closed patsevanton closed 2 years ago
Please, take a look at prometheus documentation for scrape_config
- https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
VMagent uses same format for config as described here - https://docs.victoriametrics.com/vmagent.html#how-to-collect-metrics-in-prometheus-format
Default value for this variable is:
vmagent_scrape_config:
scrape_configs:
- job_name: localhost
static_configs:
- targets: []
# - "127.0.0.1:9100"
Where you will need to add your jobs and respective targets to scrape_configs
section.
Thanks!
Hello! Thanks for roles vm
I try install vmagent by ansible and get error
Inventory
Playbook
ansible error
systemctl status vic-vmagent
cat /opt/vic-vmagent/config.yml