pyrra-dev / pyrra

Making SLOs with Prometheus manageable, accessible, and easy to use for everyone!
https://demo.pyrra.dev
Apache License 2.0
1.16k stars 101 forks source link

webhook: fix panic on unexpected parser expression #1183

Closed squat closed 1 month ago

squat commented 1 month ago

Even if a vector expression in an SLO returns a vector, the webhook API handler will panic if the underlying expression is not a vector selctor.

Fixes: https://github.com/pyrra-dev/pyrra/issues/1181

Signed-off-by: squat lserven@gmail.com

metalmatze commented 1 month ago

Again, thank you!