Closed Matvey-Kuk closed 2 years ago
Possible directions from first explorations:
UPD
If the user uses a hobby setup and his address is 'localhost', Telegram can't connect to OnCall.
Solution is to make redirect by TELEGRAM_WEBHOOK_HOST more clear as step.
Proposal upd to the docs page https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss:
ChatOps setup upd:
Documentation:
I. Setup connection to Telegram API
If steps 3-4 don't meet Telegram's requirements, parts 2-3 are locked and user see warning.
ChatOps Telegram tab:
II. Setup team Telegram workspace
User profile tab:
III. Setup personal Telegram connection
‘Connect automatically’ button or add bot manually:
Initial info for users.
ChatOps:
You can manage incidents directly in your team channel. Make sure your team connects Telegram in their OnCall user profiles too. Users can perform actions (acknowledge, resolve, silence) and discuss alerts only if they set up personal Telegram connection. Notifications will be serve as links to the channel.
To manage incidents as user’s direct messages, your need to connect only personal Telegram.
Alert: Telegram environment is not detected. Before connecting channel, please configure your OnCall bot and fill out ENV variables related to Telegram.
Find more in OnCall documentation.
Connect personal Telegram
You can manage incidents directly in your personal Telegram. To establish connection you need to setup Telegram environment first.
Alert: Telegram environment is not detected. Before connecting personal telegram account, please configure your OnCall bot and fill out ENV variables related to Telegram.
Find more in OnCall documentation.
Closing this issue since documentation issues should be resolved by https://github.com/grafana/oncall/pull/406.
@vadimkerr I am really so tired and spend so much time to configure Telegram connection. My configuration satisfies all the conditions stated in the documentation, So far it still doesn't work and I don't understand where I went wrong. Some configurations that I have set bellow:
- name: FEATURE_TELEGRAM_INTEGRATION_ENABLED
value: "True"
- name: TELEGRAM_WEBHOOK_HOST
value: https://74a3-27-72-98-102.ap.ngrok.io
- name: TELEGRAM_TOKEN
value: 5730377723:xxxx
https://74a3-27-72-98-102.ap.ngrok.io
stills be called via POST to path /telegram with status code 200.I agree with the previous speaker. It would be easier to set up integration, knowing that you need to throw in the telegram api
curl -F "url=https://oncall-domain.com/telegram/" https://api.telegram.org/bot[token]/setWebhook
Filing this issue cause we hear periodic complains from users about how to set up Telegram. I propose to review the whole telegram setup from 0 to 1 and build a list of places which may be confusing or error-prone. Define unclear steps etc.
My assumption is that there are a few low-hanging fruits which should help us to make TG installation easy and simple.