Skip to content

Latest commit

 

History

History

kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Kubernetes deployment

Alertgram

First of all check you meet the requirements:

The manifest file is in docs/kubernetes/deploy.yaml.

before aplying the manifests check these:

  • They will be deployed on monitoring
  • It will set a ServiceMonitor for the alertgram metrics, the prometheus that will scrape the metrics is prometheus, change the labels if required.
  • Change the string CHANGE_ME_TELEGRAM_API_TOKENfor your Telegram API token.
  • Change the string CHANGE_ME_TELEGRAM_CHAT_IDfor your Telegram chat ID.
  • Check the alertgram container image version and update to the one you want image: slok/alertgram:XXXXXXXX.
  • Alertgram will be listening on http://alertgram:8080/alerts or http://alertgram.monitoring.svc.cluster.local:8080/alerts.

Now you are ready to kubectly apply -f ./deploy.yaml.

Alertmanager

As an example in docs/kubernetes/alertmanager-cfg.yaml, is an alertmanager configuration example that connects with alertgram.

Before deploying this, we assume:

  • You are using prometheus-operator.
  • Your alertmanager is main, if not change accordingly (labels, names...)
  • Is deployed on monitoring namespace.