Skip to content

Add Pushover notification support to alerting configuration#819

Merged
0xfornax merged 5 commits into
rocket-pool:masterfrom
mpeterson:add_pushover_alerting
Jun 19, 2025
Merged

Add Pushover notification support to alerting configuration#819
0xfornax merged 5 commits into
rocket-pool:masterfrom
mpeterson:add_pushover_alerting

Conversation

@mpeterson

Copy link
Copy Markdown
Contributor

Adds configuration parameters to TUI to configure Pushover notifications. These can be used together with Discord notifications.

closes #818

send_resolved: false
{{- end }}

{{- if .PushoverToken.Value .PushoverUserKey.Value }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was it intentional to repeat this code here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the idea was to mimic the same block as with discord, but I see that I copied pasted and forgot to add send_resolved: false. Now fixed, thanks for catching it.

@mpeterson

Copy link
Copy Markdown
Contributor Author

@0xfornax I now tested it locally on a development environment, fixing and improving some behaviors. This should be ready.

@mpeterson mpeterson requested a review from 0xfornax May 26, 2025 09:32
@mpeterson

Copy link
Copy Markdown
Contributor Author

@0xfornax @jshufro I see there are many PRs with big refactors coming. I'd like to merge now that this is working before there will be a merge conflict with those. Is there something missing on my side to allow you merging?

pushover_configs:
- token: "{{ .PushoverToken.Value }}"
user_key: "{{ .PushoverUserKey.Value }}"
priority: {{ `'{{ if eq .CommonLabels.severity "critical" }}2{{ else if eq .CommonLabels.severity "warning" }}1{{ else }}0{{ end }}'` }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just to open a discussion about the values vis-a-vis alerts..

a priority of 1 for warning messages means that the user will get an override of quiet hours and get a notification for warning messages. Now, most alerts (e.g. OSUpdates or RPUpdates) are sending warning, with little sending info. Perhaps we should review the severities of the rules too in a different PR?

@jshufro

jshufro commented May 27, 2025

Copy link
Copy Markdown
Contributor

@0xfornax @jshufro I see there are many PRs with big refactors coming. I'd like to merge now that this is working before there will be a merge conflict with those. Is there something missing on my side to allow you merging?

Any refactors in flight shouldn't impact this much. You already got in just after we moved all these files out of smartnode-install, which would have been the bigger issue.

SUPER happy to see more alertmanager channels supported. If you feel like contributing more, see this poll:
https://dao.rocketpool.net/t/notification-channels-poll/2901

I'd support a GMC grant to cover these, if you are interested in that.

@mpeterson

Copy link
Copy Markdown
Contributor Author

@jshufro sure thing, happy to.

@0xfornax 0xfornax merged commit 66c7d46 into rocket-pool:master Jun 19, 2025
10 checks passed
@mpeterson mpeterson deleted the add_pushover_alerting branch June 19, 2025 08:35
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.

[Feature Request] Pushover notifications

3 participants