As a private cloud owner, I want to receive alerts in my Discord server when something goes wrong with my cluster. #176

Open
opened 2025-10-24 17:50:49 +00:00 by johnride · 2 comments
Owner
let scores = vec![ClusterAlertsScore {
	receivers: vec![Box::new(DiscordWebhook(todo!("your Discord webhook"))],
}]

Suggested approach

  • Create ClusterAlertScore which accepts only a list of receivers
  • This Score creates an AlertingInterpret properly configured
  • Deploy to the cluster, the operator picks it up and configures alertmanager accordingly
  • Receive notifications 🔔
```rust let scores = vec![ClusterAlertsScore { receivers: vec![Box::new(DiscordWebhook(todo!("your Discord webhook"))], }] ``` **Suggested approach** - Create ClusterAlertScore which accepts only a list of receivers - This Score creates an AlertingInterpret properly configured - Deploy to the cluster, the operator picks it up and configures alertmanager accordingly - Receive notifications 🔔
Author
Owner
https://docs.okd.io/latest/observability/monitoring/configuring-core-platform-monitoring/configuring-alerts-and-notifications.html#configuring-alerts-and-notifications
Author
Owner

New plan :

  1. On va chercher le secret, et le contenu de alertmanager manuellement
  • oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .data "alertmanager.yaml" }}' | base64 --decode > alertmanager.yaml
  1. On base64 decode ca
  2. On serde_yaml::to_value ca
  3. On s'assure que notre webhook Discord est present
New plan : 1. On va chercher le secret, et le contenu de alertmanager manuellement - `oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .data "alertmanager.yaml" }}' | base64 --decode > alertmanager.yaml` 2. On base64 decode ca 3. On serde_yaml::to_value ca 4. On s'assure que notre webhook Discord est present
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NationTech/harmony#176
No description provided.