https://github.com/pasdam/docker-grafana-loki
Playground to experiment with logs management with Grafana+Loki
https://github.com/pasdam/docker-grafana-loki
Last synced: 4 months ago
JSON representation
Playground to experiment with logs management with Grafana+Loki
- Host: GitHub
- URL: https://github.com/pasdam/docker-grafana-loki
- Owner: pasdam
- Created: 2020-07-06T01:28:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T14:36:10.000Z (almost 6 years ago)
- Last Synced: 2025-06-04T03:41:42.177Z (about 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-grafana-loki
This repository contains a docker-compose manifest to deploy a simple system to
play around with [Loki](https://github.com/grafana/loki) and
[Grafana](https://grafana.com/) for log management.
## Setup
Create a file `test.log` in the folder `promtail`, it will be used to publish
logs.
## Access to Grafana
Grafana will be accessible at [localhost:3000](http://localhost:3000), the
credentials are the default ones: username `admin`, password `admin`.
## Publish logs
To publish a log simply add a line to `promtail/test.log`. If the log is in the
json format:
```json
{"timestamp": "0001", "message": "some-message-01", "level": "info", "trace_id": "traceId-01", "span_id": "spanId-01"}
```
the field `level` will be considered as a tag, and can be used to query logs in
Grafana.