Configure Notifications for Kubernetes
With the PortSIP UCaaS, its support send the alert notifications.

Alert notifications

When an alert changes state, it sends out notifications. Each alert rule can have multiple notifications. In order to add a notification to an alert rule you first need to add and configure a notification channel (can be email, PagerDuty, or other integration).
This is done from the Notification channels page.

List of supported notifiers

Name
Type
Supports images
Support alert rule tags
DingDing
dingding
yes, external only
no
Discord
discord
yes
no
Email
email
yes
no
googlechat
yes, external only
no
Hipchat
hipchat
yes, external only
no
Kafka
kafka
yes, external only
no
Line
line
yes, external only
no
Microsoft Teams
teams
yes, external only
no
Opsgenie
opsgenie
yes, external only
yes
Pagerduty
pagerduty
yes, external only
yes
Prometheus Alertmanager
prometheus-alertmanager
yes, external only
yes
Pushover
pushover
yes
no
Sensu
sensu
yes, external only
no
Sensu Go
sensugo
yes, external only
no
Slack
slack
yes
no
Telegram
telegram
yes
no
Threema
threema
yes, external only
no
VictorOps
victorops
yes, external only
yes
Webhook
webhook
yes, external only
yes
Zenduty
webhook
yes, external only
yes

Configure EMAIL Notifications

SMTP settings

On the Pod of k8s-master-01, edit /root/prometheus/values.yaml file, edit it as the below (You will need to replace the information by your actual SMTP settings):
1
650 smtp:
2
651 enabled: true
3
652 host: smtp.example.com:465
4
653 user: test
5
654 password: testtest
6
655 skip_verify: true
7
656 from_address: [email protected]
8
657 from_name: test
Copied!
On the Pod of k8s-master-01, perform the below command:
1
cd /root/prometheus && helm upgrade --install prometheus ./ -f values.yaml
Copied!

Configure Alerting

Add Notification Channels

  1. 1.
    Sign in the Grafana, go to Alerting -> Notification channels
2. Click the "Add channel" button, you can enter the emails which will be alerted in the "Addresses" field.
3. Test. After clicking the "Test" button, will popups "Test Notification sent" information. All emails of the "Addresses" filed will receive the email.

Alert Rules

  1. 1.
    Create a new dashboard. Create > Import.
In this example,we import the dashboard from grafana.com,in the production environment you will need to create your own customDashboard.
3. Save the dashboard after successfully importing.
4. Check Alert rule
As the below example, there have three rules.
Last modified 29d ago