Files
ansible-en-role/templates/monitoring.yaml.j2
D025 94db2c0a69 feat!: remove node exporter from monitoring stack (#9)
## What 
Remove node exporter from monitoring

## Why 
Redundant for this context 

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Documentation comments have been added / updated.
2024-03-12 17:06:09 +02:00

39 lines
1.2 KiB
Django/Jinja

version: "3.9"
services:
vmagent:
container_name: vmagent
image: "victoriametrics/vmagent:v{{ vmagent_version }}"
volumes:
- vmagentdata:/vmagentdata
- ./vmagent-config.yml:/etc/vmagent/config.yml
command:
{% if prometheus_remote_write %}
- "--remoteWrite.url={{ prometheus_remote_write_url }}"
- "--remoteWrite.label={{ prometheus_remote_write_common_label }}"
{% if prometheus_remote_write_auth %}
- "--remoteWrite.basicAuth.username={{ prometheus_remote_write_auth_username }}"
- "--remoteWrite.basicAuth.password={{ prometheus_remote_write_auth_password }}"
- "--remoteWrite.tmpDataPath=/tmp/vmagent"
{% endif %}
{% endif %}
- "--promscrape.config=/etc/vmagent/config.yml"
- "--promscrape.streamParse=true"
- "--remoteWrite.vmProtoCompressLevel=2"
restart: always
cadvisor:
image: "gcr.io/cadvisor/cadvisor:v{{ cadvisor_version }}"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
postgres-exporter:
image: "quay.io/prometheuscommunity/postgres-exporter:v{{ postgres_exporter_version }}"
env_file:
- postgres.env
volumes:
vmagentdata: