Advertisement
G0nz0uk

lokiprom

Oct 31st, 2024
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.75 KB | None | 0 0
  1.  prometheus:
  2.     image: prom/prometheus:latest
  3.     container_name: prometheus
  4.     restart: unless-stopped
  5.     volumes:
  6.      - prometheus-etc:/etc/prometheus/
  7.       - prometheus-data:/prometheus
  8.     command:
  9.      - '--config.file=/etc/prometheus/prometheus.yml'
  10.       - '--storage.tsdb.path=/prometheus'
  11.       - '--web.external-url=http://alertmanager:9093'
  12.       - '--web.enable-remote-write-receiver'
  13.     expose:
  14.      - 9090
  15.     ports:
  16.      - 9090:9090
  17.     links:
  18.      - node-exporter:node-exporter
  19.     networks:
  20.      - monitoring
  21.  
  22.   loki:
  23.     image: grafana/loki:latest
  24.     ports:
  25.      - "3100:3100"
  26.     volumes:
  27.      - loki-etc:/etc/loki/
  28.     command: -config.file=/etc/loki/local-config.yml
  29.     networks:
  30.      - monitoring
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement