Skip to content

Prometheus

We are taking advantage of the prometheus community kube-prometheus-stack as well as other various components for monitoring and alerting. For more information, take a look at Prometheus Kube Stack.

Tip

You may need to provide custom values to configure prometheus. For a simple single region or lab deployment you can supply an additional overrides flag using the example found at base-helm-configs/aio-example-openstack-overrides.yaml. In other cases such as a multi-region deployment you may want to view the Multi-Region Support guide to for a workflow solution.

Install the Prometheus Stack

Run the Prometheus deployment

/opt/genestack/bin/install-prometheus.sh

Success

If the installation is successful, you should see the related exporter pods in the prometheus namespace.

kubectl -n prometheus get pods -l "release=kube-prometheus-stack"

Update Alertmanager Configuration

In this example, we supply a Teams webhook URL to send all open alerts to a teams channel. However, there are a plethora of other receivers available. For a full list, review prometheus documentation: receiver-integration-settings.

Example

You can ignore this step if you don't want to send alerts to Teams, the alertmanager will still deploy and provide information.

read -p "webhook_url: " webhook_url;
sed -i -e "s#https://webhook_url.example#$webhook_url#" \
/etc/genestack/helm-configs/prometheus/alertmanager_config.yaml