Skip to content

Commit b645379

Browse files
committed
update README.md
1 parent 4d2a3d3 commit b645379

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ npm start | pino-tee info ./logs/api.info.log | tee -a ./logs/api.log
204204

205205
You can see the application logs in [Grafana](http://localhost:3000/explore?orgId=1&left=%5B%22now-30m%22,%22now%22,%22Loki%22,%7B%22expr%22:%22%7Bjob%3D%5C%22logs-api%5C%22,filename%3D%5C%22%2Fusr%2Fapi%2Fdata%2Fapi.info.log%5C%22%7D%22%7D%5D).
206206

207+
*Note*: So far the log files are not kept in sync between the host and the container, which results in no updates in Grafana.
208+
207209
### Resources
208210

209211
- [Run Grafana Docker image](https://grafana.com/docs/grafana/latest/installation/docker/)

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ services:
3939
container_name: m99coder-promtail
4040
volumes:
4141
- ./observability/promtail.yaml:/etc/promtail/promtail-config.yaml
42-
- ./logs:/usr/api/data/
42+
- ./logs/:/usr/api/data/
4343
command: -config.file=/etc/promtail/promtail-config.yaml
4444
logging:
4545
driver: loki

0 commit comments

Comments
 (0)