remove promtail
Some checks failed
Deploy Containers / Prepare (push) Failing after 1m20s

This commit is contained in:
2025-12-27 21:31:00 -05:00
parent ad90a5c31e
commit a0221b1be4
2 changed files with 1 additions and 37 deletions

View File

@@ -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

View File

@@ -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