change directory structure
This commit is contained in:
parent
b89713643d
commit
9eb52229f1
83 changed files with 0 additions and 0 deletions
13
ansible/roles/prometheus/templates/docker-compose.yml.j2
Normal file
13
ansible/roles/prometheus/templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
container_name: prometheus
|
||||
restart: always
|
||||
volumes:
|
||||
- "{{ service_dir }}/prometheus.yml:/etc/prometheus/prometheus.yml"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "{{ prometheus_port }}:9090"
|
14
ansible/roles/prometheus/templates/prometheus.yml.j2
Normal file
14
ansible/roles/prometheus/templates/prometheus.yml.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
global:
|
||||
scrape_interval: 15s
|
||||
|
||||
scrape_configs:
|
||||
|
||||
- job_name: 'prometheus'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: 'traefik'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['host.docker.internal:{{ traefik_api_port }}']
|
Reference in a new issue