@@ -53,6 +53,11 @@ type AlertmanagerConfig struct {
5353 // The Discord webhook URL for alert notifications
5454 DiscordWebhookURL config.Parameter `yaml:"discordWebhookURL,omitempty"`
5555
56+ // The Pushover Token for alert notifications
57+ PushoverToken config.Parameter `yaml:"pushoverToken,omitempty"`
58+ // The Pushover User Key for alert notifications
59+ PushoverUserKey config.Parameter `yaml:"pushoverUserKey,omitempty"`
60+
5661 // Alerts configured in prometheus rule configuration file:
5762 AlertEnabled_ClientSyncStatusBeacon config.Parameter `yaml:"alertEnabled_ClientSyncStatusBeacon,omitempty"`
5863 AlertEnabled_ClientSyncStatusExecution config.Parameter `yaml:"alertEnabled_ClientSyncStatusBeacon,omitempty"`
@@ -159,6 +164,28 @@ func NewAlertmanagerConfig(cfg *RocketPoolConfig) *AlertmanagerConfig {
159164 OverwriteOnUpgrade : false ,
160165 },
161166
167+ PushoverToken : config.Parameter {
168+ ID : "pushoverToken" ,
169+ Name : "Alertmanager Pushover Token" ,
170+ Description : "Pushover notifications are sent via the Pushover API. See docs for detailed technical explanation or a tl;dr on how to configure at https://pushover.net/api" ,
171+ Type : config .ParameterType_String ,
172+ Default : map [config.Network ]interface {}{config .Network_All : "" },
173+ AffectsContainers : []config.ContainerID {config .ContainerID_Alertmanager },
174+ CanBeBlank : true ,
175+ OverwriteOnUpgrade : false ,
176+ },
177+
178+ PushoverUserKey : config.Parameter {
179+ ID : "pushoverUserKey" ,
180+ Name : "Alertmanager Pushover User Key" ,
181+ Description : "Pushover notifications are sent via the Pushover API. See docs for detailed technical explanation or a tl;dr on how to configure at https://pushover.net/api" ,
182+ Type : config .ParameterType_String ,
183+ Default : map [config.Network ]interface {}{config .Network_All : "" },
184+ AffectsContainers : []config.ContainerID {config .ContainerID_Alertmanager },
185+ CanBeBlank : true ,
186+ OverwriteOnUpgrade : false ,
187+ },
188+
162189 AlertEnabled_ClientSyncStatusBeacon : createParameterForAlertEnablement (
163190 "ClientSyncStatusBeacon" ,
164191 "beacon client is not synced" ),
@@ -251,6 +278,8 @@ func (cfg *AlertmanagerConfig) GetParameters() []*config.Parameter {
251278 & cfg .NativeModeHost ,
252279 & cfg .NativeModePort ,
253280 & cfg .DiscordWebhookURL ,
281+ & cfg .PushoverToken ,
282+ & cfg .PushoverUserKey ,
254283 & cfg .ContainerTag ,
255284 & cfg .AlertEnabled_ClientSyncStatusBeacon ,
256285 & cfg .AlertEnabled_ClientSyncStatusExecution ,
0 commit comments