pyrra-dev / pyrra

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

webhook: fix panic on unexpected parser expression #1183

Closed squat closed 6 months ago

squat commented 6 months 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 6 months ago

Again, thank you!