Skip to main content
Gå til innhold

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​

Check your data sources first

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.

  1. Go to Grafana
  2. Navigate to Alerting → Alert rules
  3. Click New alert rule
  4. Configure your query and threshold
  5. 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​

Required when routing to Argus

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.

LabelValuePurpose
teamYour team name, for example my-teamIdentifies which team owns the alert
orgidYour Grafana organization IDIdentifies 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:

  1. Go to Alerting → Alert rules and create or edit a rule
  2. In the Configure labels and notifications section, click Add labels
  3. Add a label with key team and your team name as the value, for example team = my-team
  4. Add a second label with key orgid and your Grafana organization ID as the value
  5. 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.

Learn more​