Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle envirement var in alertmanager/config.yml #2917

Open
KoVaLsKy2010 opened this issue May 9, 2022 · 1 comment
Open

Handle envirement var in alertmanager/config.yml #2917

KoVaLsKy2010 opened this issue May 9, 2022 · 1 comment

Comments

@KoVaLsKy2010
Copy link

KoVaLsKy2010 commented May 9, 2022

handle envirement vars
*.yml files dose not handle envirement from docker

Environment

  • Alertmanager configuration file NOW:
 receivers:
      - name: 'telegram'
        telegram_configs:
          - send_resolved: true
            api_url: 'https://api.telegram.org'
            bot_token: '123456:ASDFGH-:LKHHGFGD-WERWERWER'
            chat_id: 12345
            parse_mode: 'Markdown'

For example

receivers:
      - name: 'telegram'
        telegram_configs:
          - send_resolved: true
            api_url: 'https://api.telegram.org'
            bot_token: ${TELEGRAM_TOKEN}
            chat_id: ${TELEGRAM_ADMIN}
            parse_mode: 'Markdown'

docker-compose.yml

alertmanager:
        image: prom/alertmanager
        ports:
            - 9093:9093
        environment:
            - TELEGRAM_ADMIN=12345
            - TELEGRAM_TOKEN='123456:ASDFGH-:LKHHGFGD-WERWERWER'
@KoVaLsKy2010 KoVaLsKy2010 changed the title Handle envirement var Handle envirement var in alertmanager/config.yml May 9, 2022
@splitt3r
Copy link

Duplicate of #504

#2498 tries to solve the problem with secret files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants