observability/roles/vmagent
2024-12-19 21:19:55 +01:00
..
defaults/main update(vmagent): bump version to 1.108.1 2024-12-19 21:19:55 +01:00
handlers feat(vmagent): add ansible role with docker support 2024-10-10 20:30:00 +02:00
meta feat(vmagent): add ansible role with docker support 2024-10-10 20:30:00 +02:00
tasks chore(vmagent): add comparison policy for docker containers 2024-10-12 21:08:39 +02:00
vars feat(vmagent): add ansible role with docker support 2024-10-10 20:30:00 +02:00
README.md feat(vmagent): add ansible role with docker support 2024-10-10 20:30:00 +02:00

finallycoffee.observability.vmagent ansible role

Install and configure the victoriametrics agent vmagent using the supported deployment types (see vars/main.yml#L5).

Configuration

Set scrape job configuration as complex data in vmagent_config_scrape_configs. To tune the scrape interval, override vmagent_config_global_scrape_interval, or modify / extend vmagent_config directly.

Prometheus remote write api with basic auth

One of the more common methods of sending the collected metrics to a central prometheus server. Set the following variables to archieve this:

vmagent_flags:
  remoteWrite_url: https://my.prometheus.instance.example.com/api/v1/write
  remoteWrite_basicAuth_username: my_prom_user
  remoteWrite_basicAuth_passwordFile: /path/to/password/file.key

For the full set of options, see either the vmagents' "Advanced usage" documentation or run vmagent -help for the same output.