Grafana Alerting
Grafana Alerting lets you configure alerts directly in the Grafana UI, without YAML files or deployments. See Choose an approach for how to choose between Grafana Alerting and Prometheus rules.
What you can alert on
You can alert on:
- Log patterns, such as error logs exceeding a threshold
- Metrics, such as request latency that is too high
- Absence, when data you expect stops arriving
The Platon App Clusters data source has the metrics the cluster Prometheus on PaaS collects, and your team's Mimir data source has the metrics your application sends with OpenTelemetry.
Setting up Grafana Alerting
Grafana can only alert on data sources that use BasicAuth. BasicAuth is the default for new data sources, but some organizations still have data sources on OAuth, often the Loki data source. If you're not sure about a data source, or an alert rule can't query it, ask the Platon team on #platon-observability to move it to BasicAuth.
- Go to Grafana
- Navigate to Alerting → Alert rules
- Click New alert rule
- Configure your query and threshold
- Set up notification destinations (Slack, Microsoft Teams)
Notification channels
Grafana can send alerts to:
- A Slack channel
- A Microsoft Teams channel
- Argus: Contact Platon team on slack to configure contact point to send alerts to Argus from Grafana.
Configure destinations in Alerting → Contact points.
Label your alerts with your team name and org ID
If you send alerts from Grafana to Argus, every alert rule must carry a team label with your team name and an orgid label with your Grafana organization ID.
Alerts are aggregated in Argus from Grafana as a single source. These labels follow the alert into Argus as tags, and those tags are what let you filter your own alerts. Without them, your alerts arrive in Argus with no way to distinguish them from everyone else's, and you can't build a notification profile that reaches only your team.
| Label | Value | Purpose |
|---|---|---|
team | Your team name, for example my-team | Identifies which team owns the alert |
orgid | Your Grafana organization ID | Identifies which Grafana organization the alert came from |
The orgid value is the ID of the Grafana organization that you log in to at grafana.platon.sikt.no and that holds your alert rules and data sources. If you're unsure which org ID applies to your team, ask the Platon team on #platon-observability.
To add the labels when creating or editing an alert rule in Grafana:
- Go to Alerting → Alert rules and create or edit a rule
- In the Configure labels and notifications section, click Add labels
- Add a label with key
teamand your team name as the value, for exampleteam=my-team - Add a second label with key
orgidand your Grafana organization ID as the value - Save the rule
Then, in Argus, create a filter on those tags (for example team=my-team and orgid=<your-orgid>) and link it to your notification profile — see Configuring Notifications.
Use the same team name and org ID consistently across all your alert rules so a single Argus filter catches everything from your team.