这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants