NatronTech Logo
Observability

Alerting

Availability
Stage
Experimental
Prometheus Alertmanager Logo

Alerting is handled through integration with Prometheus Alertmanager, which allows you to define alerting rules based on the metrics collected from your Kubernetes clusters. This chapter provides an overview of how to set up and manage alerting for your Natron Managed Kubernetes Service clusters, including configuring alert rules, notification channels, and best practices for effective alert management.

To set up alerting in your Natron Managed Kubernetes Service, you need to define PrometheusRule resources.

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  labels:
    prometheus: k8s
    role: alert-rules
  name: example-app-rules
spec:
  groups:
  - name: example-app
    rules:
    - alert: ExampleAppDown
      annotations:
        message: Example App has been down for more than 1 minute.
      expr: |
        up{job="example-app"} == 0
      for: 1m
      labels:
        severity: critical

To set up alerting in your Natron Managed Kubernetes Service, follow these steps:

Define Alerting Rules

Create alerting rules in Prometheus based on the metrics you want to monitor. These rules can be defined using PromQL expressions and specify the conditions under which an alert should be triggered.

Configure Alertmanager

Set up Alertmanager to handle alerts generated by Prometheus. This involves defining notification channels (e.g., email, Slack, Jira) and routing rules to ensure that alerts are sent to the appropriate teams.

Test Alerts

Once your alerting rules and Alertmanager configuration are in place, test the alerts to ensure they are functioning as expected. This may involve simulating conditions that would trigger an alert.

On this page