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

Push notifications on metrics #93

Closed
einari opened this issue Jul 26, 2018 · 14 comments
Closed

Push notifications on metrics #93

einari opened this issue Jul 26, 2018 · 14 comments
Assignees
Milestone

Comments

@einari
Copy link

einari commented Jul 26, 2018

child of #71

We need to be able to get push notifications to our mobile phones based on different metrics.
Grafana has an extensive alert system that should enable this

@einari einari added this to the 2.0.0 milestone Jul 26, 2018
@einari einari added the ready label Jul 26, 2018
@woksin
Copy link

woksin commented Jul 30, 2018

@einari I need to know which metrics we want push notifications on, and for which namespaces

@einari
Copy link
Author

einari commented Jul 30, 2018

Could we start with memory - as a test.
Set it to 1GB right now - we'll be setting a memory quota for everything that is way less than that, but interesting to gain some more experience

@woksin
Copy link

woksin commented Jul 30, 2018

1gb quota for what? "User namespace", node, pod or what were you thinking of?

@einari
Copy link
Author

einari commented Jul 31, 2018

Per Pod to start with.

@woksin woksin added in progress and removed ready labels Jul 31, 2018
@woksin
Copy link

woksin commented Jul 31, 2018

Grafana's alert system is really flaky grafana/grafana#10412 (at least at the version that we are currently using).

Effectively means that I cannot set up alerts as of now

  • Edit: Scratch that, I found out what was wrong

@einari
Copy link
Author

einari commented Aug 3, 2018

This sits in developed; probably needs some clarification.
The idea was to be able to push to mobile devices - using something like notification hubs in Azure:
https://azure.microsoft.com/en-us/services/notification-hubs/

The goal is to have a variety of options for people to be able to subscribe to events. For our internal staff

@woksin
Copy link

woksin commented Aug 6, 2018

@einari push notifications are apparently not that easy to set up.

However, Prometheus Alertmanager comes with "out-of-the-box" integrations for SMS and email. I think that setting the alertmanager up to send some specified alerts by sms and/or email would be our best bet for now.

@einari
Copy link
Author

einari commented Aug 6, 2018

We can do SMS - but from what I can see in the documentation, it shouldn't be hard to do Notification Hubs:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-notification-hubs

https://docs.microsoft.com/en-us/azure/notification-hubs/

https://azure.microsoft.com/en-us/resources/samples/event-hubs-dotnet-user-notifications/

There should be a HTTPS endpoint to be able to do this. Can Prometheus post to a Web URL?

@einari
Copy link
Author

einari commented Aug 6, 2018

There is another alternative as well - Azure Alerts: https://azure.microsoft.com/en-us/resources/videos/introduction-to-webhooks-for-azure-alerts/

@woksin
Copy link

woksin commented Aug 6, 2018

Alternatively, there are lots of out-of-the-box support for alerting. Including possible integrations with WebHook, there are support for services like:
PagerDuty, Slack, VictorOps, OpsGenie, and more...

@woksin
Copy link

woksin commented Aug 6, 2018

I think the easiest and best solution would be to use either PagerDuty or VictorOps for this, though they are paid services.

Or, perhaps Pushover for just mobile notifications

@woksin
Copy link

woksin commented Aug 6, 2018

Or, we could use slack. Slack can give us mobile push notifications

@einari
Copy link
Author

einari commented Aug 6, 2018

We have Teams - so that will effectively do the same in that regards, don't want to introduce Slack to the mix. Let's investigate further. It should be very simple to use Notification Hubs. The idea was to then govern this from Azure AD with groups

@einari
Copy link
Author

einari commented Oct 1, 2018

We will park this issue for noe.

@einari einari closed this as completed Oct 1, 2018
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