Configuration
Monitoring
Monitor your application using Grafana + Loki + Prometheus Stack
Configuration
This choice must be made using the GoFast CLI. Possible options are Grafana + Loki + Prometheus Monitoring
and None
.
Setup
Install Dependencies
Start the Grafana
Access Grafana
Username: admin
Password: admin
Add Loki Data Source
- Go to
Configuration
->Data Sources
. - Click on
Add data source
. - Select
Loki
as the type. - Set the URL to
http://loki:3100
. - Click on
Save & Test
.
Add Prometheus Data Source
- Make sure that the main GoFast stack is running.
- Go to
Configuration
->Data Sources
. - Click on
Add data source
. - Select
Prometheus
as the type. - Set the URL to
http://host.docker.internal:9090
. - Click on
Save & Test
.
Import dashboards
- Go to
Dashboards
->New
->Import
. - Enter the Dashboard ID and click on
Load
.1860
for OS metrics15798
for Docker container metrics21040
for Docker daemon metrics (configure the Docker daemon)
- Select the Prometheus data source and click on
Import
. - Optionally, you can checkout more dashboards at https://grafana.com/grafana/dashboards.
Add Loki logs
- Go to
Explore
->Logs
. - Select the Loki data source.
- Click on
Select label
and choosecontainer_name
. - Click on
Select value
and choose your container. - Click on
Run query
. - Optionally, you can add the logs to a dashboard by clicking on
Add to dashboard
.
Create alerts
In progress…
Need help?
Visit our discord server to ask any questions, make suggestions and give feedback :).