chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Telegram setup: Edit placeholder text/add stuff for clarity

Open rkuchan opened this issue 9 years ago • 5 comments

Current setup

Current Telegram setup:

image

Suggested setup

Description

This is nit, but I like Send alert messages to a Telegram bot more than You can have alerts sent to Telegram by entering info below.

Setting up a Telegram bot isn't incredibly straightforward. I think linking to the more detailed Kapacitor documentation (https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-bot) would be helpful. Maybe something like:

  • The text: Send alert messages to a Telegram bot, where Telegram bot links directly to the Kapacitor docs
  • A question mark icon next to Telegram bot that links directly to the Kapacitor docs
  • A question mark icon with a tooltip that says: Need help creating a bot? Check out these steps.

Telegram URL

Er, get rid of this option entirely. When I setup Telegram with Kapacitor I didn't have to touch that setting; I'd like to confirm that with someone else who's used this, but I'm almost certain that users never need to edit that URL.

Token and Chat ID

Change blank to your-telegram-token Change blank to your-telegram-chat-id

Creating the correct token/identifying your chat id isn't incredibly straightforward. I think having a link to the more-detailed Kapacitor documentation (https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-api-access-token & https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-chat-id) would help. Maybe something like a question mark (see terrible example below) that either:

  • Links directly to https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-api-access-token | https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-chat-id
  • Or has a tooltip that says something like: Need help finding your token | chat id? Check out [these steps](https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-api-access-token | https://docs.influxdata.com/kapacitor/latest/guides/event-handler-setup/#telegram-chat-id).

image

Parse Mode

A couple things:

  • The default Parse Mode is Markdown so maybe have the Markdown checkbox selected by default
  • Instead of Parse Mode have: Select the alert message format

Disable checkboxes

Instead of Disable Web Page Preview, what about: Disable link previews in alert messages.

Instead of Disable Notification, what about: Disable notifications on iOS devices and disable sounds on Android devices. Android users continue to receive notifications.

That last one is wordy but I think it's clearer. The first time I saw that I thought it was disabling the event handler altogether :/

rkuchan avatar Feb 23 '17 23:02 rkuchan

Removing the request for "test telegram" and moving that into its own issue. #1082

nhaugo avatar Mar 27 '17 21:03 nhaugo

@alexpaxton to add design for help callout, or just say use '?'

nhaugo avatar Mar 28 '17 00:03 nhaugo

For the short term, link to the kapacitor documentation. Drop a new issues when closing this to write chronograf docs for this.

nhaugo avatar Mar 28 '17 00:03 nhaugo

  • [x] Update Telegram Alert description and add link
  • [x] Remove Telegram URL
  • [x] Placeholder for Token
  • [x] ? for Token
  • [x] Placeholder for Chat ID
  • [x] ? for Chat ID
  • [x] Parse Mode => Select the alert message format
  • [x] Message Format > Markdown selected by default
  • [x] Disable Web Page Preview => Disable <link previews> in alert messages
  • [x] Disable Notification => Disable notifications on iOS devices and disable sounds on Android devices. Android users continue to receive notifications.

@rkuchan Can you verify that I got everything? @nhaugo Can you verify that we're removing Telegram URL?

lukevmorris avatar Mar 30 '17 18:03 lukevmorris

@lukevmorris looks good!

rkuchan avatar Mar 30 '17 18:03 rkuchan