-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(slos): BoolGauge promql expr should not be multiplied by 100 #1255
fix(slos): BoolGauge promql expr should not be multiplied by 100 #1255
Conversation
would also appreciate for this PR to be merged, seems like we are facing a similar issue |
any news here? we want to start using pyrra mainly with bool gauges, and currently it's unusable due to the error described here |
Hey @deanb-everc, I can give you some guidance to build your own image if you'd like, this is how we're working around the issue in our production envs. There is likely a much better way to build an image locally, but this is what worked for me. Clone my fork & checkout the branch with the fix
Set up Build EnvironmentSetting up your build env is documented in CONTRIBUTING.md, so please refer to that document, however the highlights are as follows: Required build toolsInstall these in whichever way your local OS supports it, I am on MacOS so I would use
Required build dependencies
BuildBuilding the binary
After performing this step, you should have a new file in the root of the repo named Building the container image
This will have now built a local image
Configuring Helm to use your custom imageFinally, if you are using the helm chart by rlex to deploy pyrra to your cluster, you can add the following to your values.yaml to switch to your custom image: image:
repository: my-lovely-registry.somecompany.sometld/pyrra
tag: dev Enjoy :) |
got it @alexberry , thanks! |
e2c0d33
to
dccf1ac
Compare
@deanb-everc I wanted a better build mechanism than locally-built images, so I created my own (throwaway) PR to generate the container image image:
repository: ghcr.io/alexberry/pyrra
tag: pr-3 |
hello @metalmatze, is there any chance this can be reviewed? We've been hoping to revert to the master branch of this repo for over a month now, but are still having to run a custom-built image. |
Looked this over and have confirmed the behavior on some of our instances. LGTM and hoping this can get merged in. |
Hello everyone! This seems logical to me. |
Again, thank you so much! |
Yes please, that would be very helpful :) |
While building out an uptime SLO using a BoolGauge we performed some simple testing by forcing a failure and observed the following issues:
100 *
, which returns a true percentageThis resulted in the error graph making sense for our
Ratio
SLOs, however for aBoolGauge
SLOs would return 10000% failure in the error graph (as opposed to the expected 100%), and non-sensical burn rates.This fixes #1257