Install Alertmanager using the Operator

Prometheus Alertmanager handles alerts sent from the Prometheus server based on the rules that you setup. If any Prometheus rule is triggered, the alert manager sends a corresponding notification to the specified receivers. You can configure these receivers using an Alertmanager config file.

Perform the following steps to set up an Alertmanager configuration and enable Prometheus and Alertmanager:

  1. Create a secret called alertmanager-portworx in the same namespace as the StorageCluster object. This secret should contain a valid Alertmanager configuration. The key for this should be called alertmanager.yaml.

    kubectl -n kube-system create secret generic alertmanager-portworx --from-file=alertmanager.yaml=alertmanager.yaml
  2. Edit your StorageCluster object to enable Prometheus and Alertmanager:

    kind: StorageCluster
     name: portworx
     namespace: kube-system
         enabled: true
         exportMetrics: true
           enabled: true

Once applied, you can access Alertmanager by setting up port forwarding and browsing to the specified port:

kubectl -n kube-system port-forward service/alertmanager-portworx 9093:9093

Last edited: Thursday, Oct 28, 2021