This commit is contained in:
@@ -27,15 +27,11 @@
|
|||||||
traefik.http.routers.prom.tls.certresolver: letsencrypt
|
traefik.http.routers.prom.tls.certresolver: letsencrypt
|
||||||
traefik.http.services.prom.loadbalancer.server.port: "9090"
|
traefik.http.services.prom.loadbalancer.server.port: "9090"
|
||||||
|
|
||||||
# copy configs for loki + promtail
|
# copy configs for loki
|
||||||
- name: Create Loki Configuration
|
- name: Create Loki Configuration
|
||||||
template:
|
template:
|
||||||
src: templates/monitoring/loki.yaml.j2
|
src: templates/monitoring/loki.yaml.j2
|
||||||
dest: "{{ data_dir }}/monitoring/loki/loki-config.yaml"
|
dest: "{{ data_dir }}/monitoring/loki/loki-config.yaml"
|
||||||
- name: Create Promtail Configuration
|
|
||||||
template:
|
|
||||||
src: templates/monitoring/promtail.yaml.j2
|
|
||||||
dest: "{{ data_dir }}/monitoring/promtail/promtail-config.yaml"
|
|
||||||
|
|
||||||
- name: Deploy Node Exporter
|
- name: Deploy Node Exporter
|
||||||
include_role:
|
include_role:
|
||||||
@@ -87,21 +83,6 @@
|
|||||||
networks:
|
networks:
|
||||||
- name: "monitoring"
|
- name: "monitoring"
|
||||||
|
|
||||||
- name: Deploy Promtail
|
|
||||||
include_role:
|
|
||||||
name: docker
|
|
||||||
vars:
|
|
||||||
name: monitoring_promtail
|
|
||||||
image:
|
|
||||||
name: grafana/promtail
|
|
||||||
tag: latest
|
|
||||||
command: -config.file=/etc/promtail/config.yaml
|
|
||||||
networks:
|
|
||||||
- name: "monitoring"
|
|
||||||
volumes:
|
|
||||||
- "/var/log:/var/log:ro"
|
|
||||||
- "{{ data_dir }}/monitoring/promtail/promtail-config.yaml:/etc/promtail/config.yaml"
|
|
||||||
|
|
||||||
- name: Deploy Grafana
|
- name: Deploy Grafana
|
||||||
include_role:
|
include_role:
|
||||||
name: docker
|
name: docker
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
server:
|
|
||||||
http_listen_port: 9080
|
|
||||||
|
|
||||||
positions:
|
|
||||||
filename: /tmp/positions.yaml
|
|
||||||
|
|
||||||
clients:
|
|
||||||
- url: http://monitoring_loki:3100/loki/api/v1/push
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
- job_name: system
|
|
||||||
static_configs:
|
|
||||||
- targets:
|
|
||||||
- localhost
|
|
||||||
labels:
|
|
||||||
job: varlogs
|
|
||||||
__path__: /var/log/**/*.log
|
|
||||||
Reference in New Issue
Block a user