diff --git a/tasks/monitoring.yml b/tasks/monitoring.yml index fd14b4d..1a438be 100644 --- a/tasks/monitoring.yml +++ b/tasks/monitoring.yml @@ -27,15 +27,11 @@ traefik.http.routers.prom.tls.certresolver: letsencrypt traefik.http.services.prom.loadbalancer.server.port: "9090" -# copy configs for loki + promtail +# copy configs for loki - name: Create Loki Configuration template: src: templates/monitoring/loki.yaml.j2 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 include_role: @@ -87,21 +83,6 @@ networks: - 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 include_role: name: docker diff --git a/templates/monitoring/promtail.yaml.j2 b/templates/monitoring/promtail.yaml.j2 deleted file mode 100644 index 601fe75..0000000 --- a/templates/monitoring/promtail.yaml.j2 +++ /dev/null @@ -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