Jakub Sokołowski 9f8009520d
refactor use use Docker Compose to create containers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-12-07 16:56:52 +01:00

15 lines
481 B
YAML

---
- name: Create Consul service definition
include_role: name=consul-service
vars:
consul_config_name: '{{ grafana_service_name }}'
consul_services:
- name: '{{ grafana_service_name }}'
tags: ['monitor', 'grafana']
port: '{{ grafana_port }}'
checks:
- id: '{{ grafana_service_name }}-health'
name: 'Grafana current health'
type: 'http'
http: 'http://localhost:{{ grafana_port }}/api/health'