Skip to content
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: series operations #1672

Merged
merged 1 commit into from
Mar 16, 2016
Merged

cmd/bosun: series operations #1672

merged 1 commit into from
Mar 16, 2016

Conversation

kylebrandt
Copy link
Member

image

@kylebrandt kylebrandt merged commit 5cc71f6 into master Mar 16, 2016
@kylebrandt kylebrandt deleted the seriesOp branch April 8, 2016 15:04
@iamamberkulkarni
Copy link

Hey we are using bosun version 0.5.0-rc2.
Want to try out series operations so have created an expression as follows:

$a = q("sum:metric_name{filters...}", "7h", "")
$b = q("sum:metric_name{filters...}", "7h", "")
$a/$b

above expression gives the error
expr: parse: type error in q("sum:filter{filters...}", "7h", "") / q("sum:filter{filters...}", "7h", ""): at least one side must be a number

Was trying this out after seeing doc.
Series Operations If you combine two seriesSets with an operator (i.e. q(..) + q(..)), then operations are applied
for each point in the series if there is a corresponding datapoint on the right hand side (RH). A corresponding datapoint is one which has the same timestamp (and normal group subset rules apply). If there is no corresponding datapoint on the left side, then the datapoint is dropped. This is a new feature as of 0.5.0.

Are we doing something wrong here ?
Please help. Thanks.

p.s. have not put actual metrics.

@iamamberkulkarni
Copy link

Hey used latest code and it works. thanks a ton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants