-
Notifications
You must be signed in to change notification settings - Fork 491
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
cmd/Bosun: enable group by interval in the influx() query #1304
cmd/Bosun: enable group by interval in the influx() query #1304
Conversation
If you rebase this on origin/master travis CI should start working. There is a new version of Esc as well so you will need to run |
|
||
t := make(parse.Tags, len(s.Dimensions)) | ||
for _, d := range s.Dimensions { | ||
if _, ok := d.Expr.(*influxql.Call); ok { // && call.Name == "time" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the commented out code // && call.Name == "time" {
I left a note on a line that has some commented out code that should be removed. Also the docs from #1298 (comment) should be commited into the /docs/expressions.md file as part of this PR, as we usually like to have doc changes in the same PR that the code is changed. Other than that I tested this on my local instance and it looks good. The following query based on a counter matches what I would expect to get from OpenTSDB:
Still not sure exactly how downsampling or fill values work for counters in Influx. If I change 1s to something larger the graph jumps above 100%, so I assume I would need to wrap the above query in another query if I wanted to get the equivalent of a 5m-avg downsample. I looks like Influx does this using something called Continuous Queries. |
Found a github issue about using rates in influxdb. looks like the non_negative_derivative function can take an optional argument and aggregate function. So on my test system that sends scollector data to both influxdb and opentsdb the following queries create the same graphs:
|
Thanks! I'll rebase the work, and fix the issues. |
The docs look good here. Could probably use another rebase to pull in the new influx settings in the conf file, but otherwise LGTM. Let me know if you are ready for this to be merged. |
Rebased. I'm running our proof of concept system with the rebased code, and our version of the os.diskspace check looks to be okay.
|
LGTM Thanks for working on this! |
cmd/Bosun: enable group by interval in the influx() query
A first throw at fixing the inconsistencies. See bug #1298. I think I've fixed the tests. Fighting with travis now.