To handle shipping logs from docker, we need to install a docker plugin:
docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
Once that's done, we can simple bring up the services:
docker-compose up -d
Once that's up you should be able to access the following services:
- The swagger documentation for the application:
http://localhost:5000/swagger - Grafana:
http://localhost:3000/
After executing a call to the /WeatherForecast
using the swagger docs, you should be able to see some logs in grafana. If you expand the Getting weather forecast traceID=...
log, you should be able to click on a Tempo
button to view the associated trace.
Currently, although a button appears on the trace span to view Logs for this span
, this doesn't work. I assume there is some configuration on the Data Source that is required.