Setting up Grafana Logging #
The API is set up to use Grafana to receive logs to allow them to be more easily consumed. This is completely optional and logging will go to the console as well as Grafana.
First head to Grafana.com and setup a free trial account. Next you can create a 'Stack' in the Grafana Cloud Portal.
Once created you should see a 'Details' button beside the Stack's name. Click this button and you should see a list of all the stack options (e.g. Grafana, Prometheus, OpenTelemetry etc).
In this list you should see an entry for Loki. Click the 'Details' button for this item.
On the next page there should be a blue box with the URL (host), User ID and an option to generate a token.
These items are what you need to add to the .env file. See the environment variables section for more details on this.