<p>I have configured Prometheus &amp; Grafana in GCP kubernetes Environment using the KB's provided in <a href="https://github.com/coreos/prometheus-operator/tree/master/contrib/kube-prometheus/manifests" rel="nofollow noreferrer">https://github.com/coreos/prometheus-operator/tree/master/contrib/kube-prometheus/manifests</a>   </p>

<p>All are working perfect and my cluster details are showing in Grafana. Now I want to configure alert for Prometheus and  need to integrate to my slack channel. If anyone have any Idea about this please let me know.</p>

<p>Thanks in advance</p>

prometheusmanu manu
<p>Using the prometheus-operator, it took me a while to figure out that the alertmanager configuration is stored as a secret in
<a href="https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/manifests/alertmanager-secret.yaml" rel="nofollow noreferrer">https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/manifests/alertmanager-secret.yaml</a></p>

<p>You would need to decode it, edit, encode and apply</p>

<pre><code>echo "Imdsb2JhbCI6IAogICJyZXNvbHZlX3RpbWVvdXQiOiAiNW0iCiJyZWNlaXZlcnMiOiAKLSAibmFtZSI6ICJudWxsIgoicm91dGUiOiAKICAiZ3JvdXBfYnkiOiAKICAtICJqb2IiCiAgImdyb3VwX2ludGVydmFsIjogIjVtIgogICJncm91cF93YWl0IjogIjMwcyIKICAicmVjZWl2ZXIiOiAibnVsbCIKICAicmVwZWF0X2ludGVydmFsIjogIjEyaCIKICAicm91dGVzIjogCiAgLSAibWF0Y2giOiAKICAgICAgImFsZXJ0bmFtZSI6ICJEZWFkTWFuc1N3aXRjaCIKICAgICJyZWNlaXZlciI6ICJudWxsIg==" | base64 --decode 
</code></pre>
