mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tailing grafana logs and temporaily using an older build
This commit is contained in:
parent
53331772ef
commit
0442a86400
27
devenv/docker/blocks/loki/config.yaml
Normal file
27
devenv/docker/blocks/loki/config.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
server:
|
||||||
|
http_listen_port: 9080
|
||||||
|
grpc_listen_port: 0
|
||||||
|
|
||||||
|
positions:
|
||||||
|
filename: /tmp/positions.yaml
|
||||||
|
|
||||||
|
client:
|
||||||
|
url: http://loki:3100/api/prom/push
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: system
|
||||||
|
entry_parser: raw
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- localhost
|
||||||
|
labels:
|
||||||
|
job: varlogs
|
||||||
|
__path__: /var/log/*log
|
||||||
|
- job_name: grafana
|
||||||
|
entry_parser: raw
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- localhost
|
||||||
|
labels:
|
||||||
|
job: grafana
|
||||||
|
__path__: /var/log/grafana/*log
|
@ -5,7 +5,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
loki:
|
loki:
|
||||||
image: grafana/loki:master
|
image: grafana/loki:master-3e6a75e
|
||||||
ports:
|
ports:
|
||||||
- "3100:3100"
|
- "3100:3100"
|
||||||
command: -config.file=/etc/loki/local-config.yaml
|
command: -config.file=/etc/loki/local-config.yaml
|
||||||
@ -13,9 +13,11 @@ services:
|
|||||||
- loki
|
- loki
|
||||||
|
|
||||||
promtail:
|
promtail:
|
||||||
image: grafana/promtail:master
|
image: grafana/promtail:master-3e6a75e
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./docker/blocks/loki/config.yaml:/etc/promtail/docker-config.yaml
|
||||||
- /var/log:/var/log
|
- /var/log:/var/log
|
||||||
|
- ../data/log:/var/log/grafana
|
||||||
command:
|
command:
|
||||||
-config.file=/etc/promtail/docker-config.yaml
|
-config.file=/etc/promtail/docker-config.yaml
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user