Skip to content

Commit

Permalink
Merge branch 'loki'
Browse files Browse the repository at this point in the history
  • Loading branch information
retzkek committed May 15, 2021
2 parents 917b5ca + 1703fde commit caffc7b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ services:
volumes:
- prom_data:/prometheus
network_mode: host
loki:
image: grafana/loki:2.0.0
command: -config.file=/etc/loki/local-config.yaml
network_mode: host
promtail:
build: promtail
volumes:
- ${HOME}/.chia/mainnet/log:/var/log/chia
- ${HOME}/.chia/mainnet/plotter:/var/log/plotter
command: -config.file=/etc/promtail/config.yml
network_mode: host
grafana:
build: grafana
network_mode: host
Expand Down
2 changes: 2 additions & 0 deletions promtail/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM grafana/promtail:2.0.0
COPY promtail.yaml /etc/promtail/config.yml
25 changes: 25 additions & 0 deletions promtail/promtail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
server:
http_listen_port: 9080
grpc_listen_port: 0

positions:
filename: /tmp/positions.yaml

clients:
- url: http://localhost:3100/loki/api/v1/push

scrape_configs:
- job_name: chia
static_configs:
- targets:
- localhost
labels:
job: chia
__path__: /var/log/chia/*
- job_name: plotter
static_configs:
- targets:
- localhost
labels:
job: plotter
__path__: /var/log/plotter/*

0 comments on commit caffc7b

Please sign in to comment.