Frontend Observability alerting
Frontend Observability provides alerting based on Faro data. These predefined alerts fire when they breach a specified threshold and enable you to gain actionable insights from your frontend data.
How it works
Frontend Observability alerts are built on Grafana-managed alerts. When you enable alerting, Grafana Cloud creates a data source-managed recording rule. This recording rule creates a metrics series based on the frontend application’s app-id
that is used to define alert rules.
Frontend Observability includes the following alerts based on predefined rules:
Alert name | Description |
---|---|
Errors Count | Fires when the number of errors increases day over day for the last 24 hours |
New Errors | Fires when the there are new errors in the last 24 hours |
Web Vitals - FID | Fires when the First Input Delay (FID) is greater than 300ms for the last 6 hours |
Web Vitals - LCP | Fires when the Largest Contentful Paint (LCP) is greater than 4000ms for the last 6 hours |
Web Vitals - CLS | Fires when the Cumulative Layout Shift (CLS) is greater than 0.25 for the last 6 hours |
Web Vitals - TTFB | Fires when the Time to First Byte (TTFB) is greater than 1800ms for the last 6 hours |
Web Vitals - FCP | Fires when the First Contentful Paint (FCP) is greater than 3000ms for the last 6 hours |
Web Vitals - INP | Fires when the Interaction to Next Paint (INP) is greater than 500ms for the last 6 hours |
Before you begin
- Ensure you have permission to create and edit an application in Frontend Observability
- Ensure you have permission to create folders and Alerts in Grafana
- Ensure you have a basic understanding of Grafana-managed alerts
Enable alerts
You can enable alerts when you create a new application or on existing applications.
Enable alerts on new applications
- Use the left navigation to select Observability > Frontend and then click Create New.
- Complete the usual steps to create a Frontend Observability application.
- In the Enable alerting section, select the alerts that you want to apply to your application.
- Click Complete.
Enable alerts on a single existing application
Tip
You can click the toggle next to any alert to view the expression it uses and what it is currently recording. This displays data only if the alert is enabled.
- Use the left navigation to select Observability > Frontend and then choose the desired application.
- Click Settings > Alerting.
- Select the alerts that you want to apply to this frontend application.
- Click Enable selected alerts.
Enable alerts for all existing applications
You can manage alerts for all applications on the Frontend Observability Configuration page. This includes enabling and disabling alerts.
Tip
You can click the toggle next to any alert to view the expression it uses and what it is currently recording. This displays data only if the alert is enabled.
- Use the left navigation to select Observability > Frontend > Configuration.
- In the Enable alerts section, select the alerts that you want to apply to frontend applications in your Grafana instance.
- Click Enable alerts.
- For each alert that you selected, choose the applications where you want to enable the alerts.
- Click Save.
Configure threshold values
You can edit basic threshold values for alerts on a per application basis to prompt them to fire based on your specified criteria.
- Use the left navigation to select Observability > Frontend and then choose the desired application.
- Click Settings > Alerting.
- Select the alerts that you want to edit and click Edit alert thresholds.
- Make the necessary changes and then click Save Changes.
Note
You can make more advanced edits to alerts by clicking Edit alert rule in Alerting. Refer to Configure alert rules for more information.
Configure alert notifications
By default, Frontend Observability doesn’t include contact points for predefined alerts. If you want to configure alert notifications, you must add the appropriate contact points for each alert rule.
Steps
- Use the left navigation to select Observability > Frontend > Configuration.
- In the Enable alerts section, click View in Alerting.
- Choose the alert rule for which you want to configure a notification and click Edit.
- In the Configure notifications section, toggle off Advanced options.
- Refer to Configure contact points to learn more.