Grafana Instance configured and tailored to your project
This is a Pro/Team/Enterprise feature. This is not available on Starter projects.
Insights such as response times, resource usage, and error rates, to help you assess the performance and health of your services.Metrics helps you analyze the performance of your infrastructure, while identifying bottlenecks and optimizing your applications.
Grafana comes pre-configured with a datasource with your project’s metrics plus a few useful dashboards to observe your projects. In addition, you can enable alerting by configuring one or more contact points and enabling alerts in your configuration file.
The configuration below is open source and can be found here. If you want to see improvements, more rules, better dashboards, more options, etc., don’t hesitate to contribute them or open an issue.
This will enable the following rules, which you can find in your grafana dashboard under “Alert rules”:
High CPU usage
Trigger: CPU usage > 75%
Duration: Sustained for 5-10 minutes
Low disk space
Trigger: Disk utilization > 75%
Duration: Persistent for 5-10 minutes
Low free memory
Trigger: Memory usage > 75%
Duration: Continuous for 5-10 minutes
Service restarted due to lack of memory
Trigger: Any service restart due to memory exhaustion
Duration: Immediate upon occurrence
High request error rate
Trigger: Request error rate > 25%
Duration: Maintained for 5-10 minutes
After they have been enabling they will start notifying your contact points when the conditions are met. For instance, here is an email sent due to a high error rate:
Contact points in Grafana are lists of integrations that send notifications to specific channels or services when alerts are triggered. Supported contact points are:
email
pagerduty
discord
slack
webhooks
First, make sure you have enabled alerting as described above. Then, go to your project dashboard and click on Settings -> Observability -> Contact points:
Once you have added them to your configuration and deployed them you should be able to see them in your grafana dashboard under “Settings” -> “Contact points” -> “Nhost Managed Contacts”:If you click on “View” you should be able to see a test button you can use to ensure your contacts are properly configured.
If you are planning to send emails as part of your alerting, you need to configure some SMTP settings as well.
First, make sure you have enabled alerting as described above. Then, go to your project dashboard and click on Settings -> Observability -> SMTP Settings:
In addition, Team and Enterprise projects can perform any changes they want. For instance you can add users, configure an OAuth provider for user authentication, add datasources, you can configure your own alerts, etc.