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

Function returning a constant-valued time series #1655

Closed
gnosek opened this issue Mar 8, 2016 · 6 comments
Closed

Function returning a constant-valued time series #1655

gnosek opened this issue Mar 8, 2016 · 6 comments

Comments

@gnosek
Copy link

gnosek commented Mar 8, 2016

I'd like to graph the current alert threshold along with metric values. Can I pretty please have a function that returns a time series containing a stream of constant values?

@kylebrandt
Copy link
Member

Will be something like:

hline(number, "tagkey", startDuration, endDuration)

And will return a series with tagged with the tagkey. Will return a series with two datapoints, and (now-StartDuration, number) and (now-endDuration, number). Stream isn't needed since to draw a line you just need two points.

@gbrayut
Copy link
Contributor

gbrayut commented Mar 8, 2016

can we generalize it to just line(startNumber, endNumber, "tagkey", startDuration, endDuration)?

@kylebrandt
Copy link
Member

Use case for that?
On Mar 8, 2016 18:16, "Greg Bray" notifications@github.com wrote:

can we generalize it to just line(startNumber, endNumber, "tagkey",
startDuration, endDuration)?


Reply to this email directly or view it on GitHub
#1655 (comment)
.

@gbrayut
Copy link
Contributor

gbrayut commented Mar 8, 2016

wanting to show a linear increase of a noisy metic. Like linelr but manually specifying values

@gbrayut
Copy link
Contributor

gbrayut commented Mar 8, 2016

Id also rather see one line function than hline() and slopeline()

@kylebrandt
Copy link
Member

Can use the series func to do this now.

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

No branches or pull requests

3 participants