Add Prometheus role

This commit is contained in:
uumas
2023-03-21 01:33:57 +02:00
parent c569974ba7
commit aa7216d6e2
4 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
- name: Prometheus container
import_role:
name: container
vars:
docker_service: prometheus
docker_image: prom/prometheus
reverse_proxy_type: none
docker_volumes:
- name: data
path: /prometheus
- template: prometheus.yml
path: /etc/prometheus/prometheus.yml
- name: Grafana container for prometheus
include_role:
name: grafana
vars:
docker_networks:
- name: prometheus
when: prometheus_install_grafana