slok / alertgram

Easy and simple prometheus alertmanager alerts on telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using secret to set token

budarin opened this issue · comments

Could you provide token via secret

I'm sorry I don't understand what do you mean, could you explain a little bit the problem?

Are we talking about Kubernetes here? Because you have an example here:

apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: alertgram
namespace: monitoring
labels:
app: alertgram
stringData:
ALERTGRAM_TELEGRAM_API_TOKEN: "CHANGE_ME_TELEGRAM_API_TOKEN"
ALERTGRAM_TELEGRAM_CHAT_ID: "CHANGE_ME_TELEGRAM_CHAT_ID"

usually secrets are used to configure services with sensitive information such as tokens or passwords

https://docs.docker.com/engine/swarm/secrets/