You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To generate HTTP alerts, Cactuar needs to be extended in two places:
src/prometheus/alert.rs: TryFrom implementation needs an if let Some(...) block added to check for HTTP alerts
src/prometheus/http_alerts.rs: New functions need to be added here to generate the PromQL and annotations to go with them. This can follow the same structure as replica_alerts.rs which is implemented within the same module.
Once done, this can be verified by creating a ServiceAlert CRD in your cluster with the controller running that asks for a HTTP alert to be created. If everything is implemented correctly, the ConfigMap generated by the controller should include the generated PromQL for the HTTP alerts as a new alert group.
The text was updated successfully, but these errors were encountered:
To generate HTTP alerts, Cactuar needs to be extended in two places:
src/prometheus/alert.rs
: TryFrom implementation needs anif let Some(...)
block added to check for HTTP alertssrc/prometheus/http_alerts.rs
: New functions need to be added here to generate the PromQL and annotations to go with them. This can follow the same structure asreplica_alerts.rs
which is implemented within the same module.Once done, this can be verified by creating a
ServiceAlert
CRD in your cluster with the controller running that asks for a HTTP alert to be created. If everything is implemented correctly, theConfigMap
generated by the controller should include the generated PromQL for the HTTP alerts as a new alert group.The text was updated successfully, but these errors were encountered: