prometheus-community/helm-charts

logs are not sent to telegram bot chat

tim1737 opened this issue · 0 comments

Describe the bug a clear and concise description of what the bug is.

logs are not sent to telegram bot chat

What's your helm version?

last

What's your kubectl version?

last

Which chart?

last

What's the chart version?

last

What happened?

please help me, I'm trying to implement the functionality so that alert manager sends logs to the telegram bot chat, but nothing comes

Prometheus

prometheus:
prometheusSpec:
ruleSelector:
matchLabels:
role: prometheus-rule

Enable scraping of all logs

scrapeLogs:
enabled: true
selectors: {}

Alertmanager

alertmanager:
alertmanagerSpec:
config:
global:
resolve_timeout: 5m
route:
group_by: ['alertname']
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: 'telegram'
receivers:
- name: 'telegram'
telegram_configs:
- send_resolved: true
api_url: "https://api.telegram.org"
bot_token: "{{ .Values.alertmanager.telegram.bot_token }}"
chat_id: "{{ .Values.alertmanager.telegram.chat_id }}"
message: '{{ template "telegram.default.message" . }}'
parse_mode: "HTML"
disable_notifications: false
http_config:
bearer_token: "{{ .Values.alertmanager.telegram.bot_token }}"
headers:
Content-Type: application/json

telegram:
  chat_id: "-10x21483xxxx"
  bot_token: "690xxxxx28:AAEaSdh_EKzboU1KxxxxxxxxX4"

Default message template for Telegram notifications

templates:

  • name: "telegram.default.message"
    content: |
    Alert Name: {{ .CommonAnnotations.summary }}
    Severity: {{ .CommonLabels.severity }}
    Description: {{ .CommonAnnotations.description }}
    Runbook: {{ .CommonAnnotations.runbook }}

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

helm upgrade prom prometheus-community/kube-prometheus-stack --values vl.yml -n ii --atomic

Anything else we need to know?

No response