Comments (5)
Just confirmed. This fixed the issues with alerting! Thanks again
from slogen.
I'm wondering what happens when tmCount
is 0 on this line: https://github.com/SumoLogic-Labs/slogen/blob/59d58d9c9ac440a88675755e333d1b800f9bde43/libs/monitor.go#L66
I think it should be guarded against.
from slogen.
Looking at my specific monitoring query it seems that the .Budget
isn't being filled with 0.9
but is 0
instead.
_view=xxx
| timeslice 6h
| sum(sliceGoodCount) as tmGood, sum(sliceTotalCount) as tmCount group by _timeslice
| fillmissing timeslice(1m)
| tmGood/tmCount as tmSLO
| (tmCount-tmGood) as tmBad
| total tmCount as totalCount
--> HERE --> | totalCount*(1-0) as errorBudget
--> HERE --> | ((tmBad/tmCount)/(1-0)) as sliceBurnRate
| if(queryEndTime() - _timeslice <= 6h,sliceBurnRate, 0 ) as latestBurnRate
| sum(tmGood) as totalGood, max(totalCount) as totalCount, max(latestBurnRate) as latestBurnRate
| (1-(totalGood/totalCount))/(1-0) as longBurnRate
| if (longBurnRate > 1 , 1,0) as long_burn_exceeded
| if ( latestBurnRate > 1, 1,0) as short_burn_exceeded
| long_burn_exceeded + short_burn_exceeded as combined_burn
This would actually fix the query and I can see that the the burn rate would exceed the value of 1.
from slogen.
Hi team, I've been using your tool extensively and I am loving it!
thnx @lswith, its very encouraging for us to know it being useful.
I'm wondering what happens when
tmCount
is 0 on this line:I think it should be guarded against.
Looking at my specific monitoring query it seems that the
.Budget
isn't being filled with0.9
but is0
instead._view=xxx | timeslice 6h | sum(sliceGoodCount) as tmGood, sum(sliceTotalCount) as tmCount group by _timeslice | fillmissing timeslice(1m) | tmGood/tmCount as tmSLO | (tmCount-tmGood) as tmBad | total tmCount as totalCount --> HERE --> | totalCount*(1-0) as errorBudget --> HERE --> | ((tmBad/tmCount)/(1-0)) as sliceBurnRate | if(queryEndTime() - _timeslice <= 6h,sliceBurnRate, 0 ) as latestBurnRate | sum(tmGood) as totalGood, max(totalCount) as totalCount, max(latestBurnRate) as latestBurnRate | (1-(totalGood/totalCount))/(1-0) as longBurnRate | if (longBurnRate > 1 , 1,0) as long_burn_exceeded | if ( latestBurnRate > 1, 1,0) as short_burn_exceeded | long_burn_exceeded + short_burn_exceeded as combined_burn
This would actually fix the query and I can see that the the burn rate would exceed the value of 1.
great catch on both, will fix and create a new release after testing them out by end of the day.
from slogen.
hey @lswith, made an attempt to fix both .Budget
not being set and tmCount
being 0 in v0.7.10 and tested it for a few configs.
please let me know if you still face the issue after upgrading to the new version.
And mega thnx for reporting this critical bug and the cause along with it :)
from slogen.
Related Issues (20)
- expand spec to specify retention period
- add documentation for using the tool behind a proxy HOT 1
- samples for advance use cases of SLO
- Explore gaps in metric query language to do SLO tracking on them
- "resource not found" when changing the service for existing config HOT 1
- monthly SLO report generator
- detailed documentation on configuring multi-window multi-burn alerts
- Revisit error budget calculation for occurrences based budgeting
- OOB samples/templates for standard services
- Panel : Worst hours with respect to error budget depletion
- Changing SLOs causing issues with scheduled views HOT 5
- The "Overview Dashboard" terraform code isn't static HOT 2
- Burnrate alerts aren't working correctly HOT 7
- SLO dashboards should also be able to do 30 days rolling
- Support for other Sumologic connections
- enable dash variables to be regex/wildcards
- allow timezone param to set in yaml for monitor notifications
- Missing Data Alerts HOT 2
- binary for linux x86_64 does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slogen.