Skip to main content
Gå til innhold

Alerting

Alerts notify you when something needs attention, so you don't have to keep watching dashboards to find out about problems.

Choose an approach​

There are two ways to set up alerts: Grafana Alerting and Prometheus rules.

Grafana Alerting can alert on any data your Grafana organization can query. That covers your logs in Loki, the metrics your application sends with OpenTelemetry to your team's Mimir data source, and the metrics the cluster Prometheus forwards to the Platon App Clusters data source. You build alerts in Grafana, where you already query your data, so a query you are looking at can become an alert rule. Alerts go to Slack, Microsoft Teams or Argus. Grafana Alerting works for every team that uses Platon's observability platform, including teams on Puppet-managed VMs and teams outside Platon. Its drawback is that the rules live in Grafana and not in your repository.

Prometheus rules are YAML files in your repository. They are reviewed in merge requests, versioned with your code and deployed through CI/CD. Alerts go to Argus or Zabbix, and Probes come with default rules. Their drawbacks are that they are only available on PaaS and that they only see the metrics the cluster Prometheus collects, so they can't alert on the metrics your application sends with OpenTelemetry or on logs.

Choose Grafana Alerting if the metrics you alert on are sent with OpenTelemetry, if you want to alert on logs, if you don't run on PaaS, or if you would rather build alerts in the same place you query your data.

Choose Prometheus rules if you want your alert rules reviewed and versioned with your code, and if the metrics you alert on are collected by the cluster Prometheus. If your team already handles alerts in Zabbix, Prometheus rules are the only way to get PaaS alerts there.

You can use both approaches, for example Probes with their default rules alongside Grafana Alerting rules on the metrics your application sends with OpenTelemetry. Argus receives alerts from both.

Argus​

Argus is an alert aggregation system that receives alerts from both Grafana and Prometheus and consolidates them into a single dashboard.

Viewing alerts​

You can see all configured alerts at argus.uninett.no.

Configuring notifications​

  1. Log in to Argus with Feide
  2. Click your profile icon → Destinations

Navigate to destinations

  1. Add a destination (email, Slack channel email, or Microsoft Teams webhook)

Create destination

  1. Create a filter for your alerts (by tags, severity, source)

Create filter

  1. Create a notification profile that links your filter to your destination

Create notification profile

Severity levels​

Give your alerts a severity label so that you can filter on it. Each severity corresponds to an Argus level:

SeverityArgus level
critical1
high, error2
medium, moderate3
low, warning4
info, informational5

Argus supports using filters to find things that are on planned maintenance. For this to work well we need to be using the same tags for the same things.

Freetext in a tag is hard to filter on.

Special keys and the format of their values​

host : If the alert is about a host or something that has a hostname, tag with host followed by the fully qualified domain name (fqdn).

ip4 : If you need to tag an ip v4 address, use the key ip4, and the value should be in the dotted base-10 integer form, not any variation of hex. Always 255.255.255.255, never ffffffff or 0xffffffff or other variants.

ip6 : If you need to tag an ip v6 address, use the key ip6, and the value should be in the lowercase hex-form, without square brackets, and without ending with dotted integer form. Always 2001:db8::ff00:1342:8329, never [2001:db8::ff00:1342:8329] or 2001:db8::ff00:19.66.131.41 or other variants.

mac : MAC addresses have the key mac and the value is in lower case hex separated by colons. Always ff:ff:ff:ff:ff:ff, never ffffffffff or FFFFFFFFFFFF.

kundetjeneste : For the SSC to care, it must have kundetjeneste set to something they care about, like for instance Campus_CNaaS.

kunde : The SSC are also great fans of kunde being set to the domain name of the customer, if it is a customer-related problem. If it is an internal problem, use kunde=sikt.no.

The SSC can make tickets of alerts in Argus and may use the SSC tags to put the ticket in the correct queue.

Format of values​

Timestamps should be in ISO8601 format, preferably in UTC. If the timezone is UTC it should end with 'z'. Always 2026-09-10T12:34:56z. If the timezone is not UTC, drop it or use the ±hh:mm variant: 2026-09-10T12:34:56+01:00. If a correct timestamp is really, really important, have both a UTC timestamp and a local timestamp. The name of the key of the local timestamp should be prefixed with the name of the key of the utc timestamp, so: reported=2026-09-10T12:34:56z and reported_local=2026-09-10T12:34:56+01:00.

Learn more​