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

Notifier: Webex #3132

Merged
merged 11 commits into from Dec 15, 2022
Merged

Notifier: Webex #3132

merged 11 commits into from Dec 15, 2022

Conversation

gotjosh
Copy link
Member

@gotjosh gotjosh commented Nov 8, 2022

Cisco's Webex has been one of the most requested notifiers on Grafana for a while now, please see: grafana/grafana#11750 (comment)

Given it's straightforward implementation, low maintenance overhead and request demand, I think it's worth including this directly in the Alertmanager.

  • test & post back results

Copy link
Contributor

@alexweav alexweav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, a couple very small nits

notify/webex/webex.go Show resolved Hide resolved
notify/webex/webex.go Outdated Show resolved Hide resolved
gotjosh added a commit that referenced this pull request Nov 9, 2022
While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in #3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.
gotjosh added a commit that referenced this pull request Nov 9, 2022
While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in #3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Cisco's Webex has been one of the most requested notifiers on Grafana for a while now, please see: grafana/grafana#11750 (comment)

Given it's straightforward implementation, low maintance overhead and request demand, I think it's worth including this directly in the Alertmanager.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
…tup in Webex Teams

- Move away from Webhook to APIRUL
- Make the Room ID a require field
- Set Authorization Credentails via Headers

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
…present

Signed-off-by: gotjosh <josue.abreu@gmail.com>
…utchered

Signed-off-by: gotjosh <josue.abreu@gmail.com>
config/notifiers.go Outdated Show resolved Hide resolved
Signed-off-by: gotjosh <josue.abreu@gmail.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Nov 16, 2022
While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in prometheus#3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I have a comment on the configuration + we would need an addition to https://github.com/prometheus/alertmanager/blob/main/docs/configuration.md#receiver.

notify/webex/webex.go Outdated Show resolved Hide resolved
notify/webex/webex.go Outdated Show resolved Hide resolved
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Dec 13, 2022
While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in prometheus#3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
@simonpasquier simonpasquier mentioned this pull request Dec 15, 2022
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, albeit 2 minor comments on the doc part.

docs/configuration.md Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
Signed-off-by: gotjosh <josue.abreu@gmail.com>
@gotjosh gotjosh merged commit 907f7d3 into main Dec 15, 2022
@gotjosh gotjosh deleted the webex-notifier branch December 15, 2022 17:57
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

Successfully merging this pull request may close these issues.

None yet

5 participants