alertmanager-snmp-notifier

by Prometheus

Helm chartv2.3.0App v2.1.1Verified publisher

The SNMP Notifier handles alerts coming from Prometheus Alertmanager and relay them as SNMP traps.

About this chart

Prometheus SNMP Notifier

An Alertmanager webhook that relays alerts as SNMP traps.

This chart creates a SNMP Notifier deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.23+

Usage

The chart is distributed as an OCI Artifact as well as via a traditional Helm Repository.

  • OCI Artifact: oci://ghcr.io/prometheus-community/charts/alertmanager-snmp-notifier
  • Helm Repository: https://prometheus-community.github.io/helm-charts with chart alertmanager-snmp-notifier

The installation instructions use the OCI registry. Refer to the [helm repo](helm repo) command documentation for information on installing charts via the traditional repository.

Install Chart

helm install [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/alertmanager-snmp-notifier

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.

To 1.0.0

This version uses SNMP Notifier 2.0.0, with the introduction of the generic --trap.user-object instead of --snmp.trap-extra-field arguments.

The chart therefore accepts the trapTemplates object with the description and userObjects variables instead of the previous snmpTemplates:

trapTemplates:
    userObjects:
    - subOid: 1
        template: |
        {{- if .Alerts -}}
        Status: NOK
        {{- else -}}
        Status: OK
        {{- end -}}
    - subOid: 5
        template: |
        This is a constant

See SNMP Notifier Repository for more details about new arguments.

It also updates the HorizontalPodAutoscaler to the autoscaling/v2 API version.

Configuration

See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

helm show values oci://ghcr.io/prometheus-community/charts/alertmanager-snmp-notifier

Flags

Check the configuration section list and add to the snmpNotifier.extraArgs block in your value overrides.

Deploy alertmanager-snmp-notifier with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has alertmanager-snmp-notifier on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartalertmanager-snmp-notifier is pinned at v2.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply