← Back to team overview

graphite-dev team mailing list archive

Re: [Question #222333]: Drawing static line

 

Question #222333 on Graphite changed:
https://answers.launchpad.net/graphite/+question/222333

    Status: Open => Answered

Nicholas Leskiw proposed the following answer:
The threshold() function allows you to draw a horizontal line with a custom
color and legend name.

I can't seem to find it in the composer UI, though.  You'll have to put it
into the graph URL manually.

Here is the documentation on that function:

http://graphite.readthedocs.org/en/0.9.10/functions.html#graphite.render.functions.threshold


On Tue, Feb 19, 2013 at 7:45 PM, Maziyar Mirabedini <
question222333@xxxxxxxxxxxxxxxxxxxxx> wrote:

> New question #222333 on Graphite:
> https://answers.launchpad.net/graphite/+question/222333
>
> Hi there,
>
> Currently I'm using Graphite to create graphs from Ganglia RRDs generated
> from HBase clusters.
> I've written a PHP application to use the URL API in Graphite to draw the
> graphs.
> Recently I was asked to show alerts on the PHP site using defined
> thresholds.  So I used the Graphite URL again to obtain raw data in
> cactistyle and parse the current value against the thresholds. So far so
> good!
>
> Then time came to show that threshold on the graph itself so the user can
> visually see it and compare the values against the threshold. e.g. a dotted
> red line on the graph at 50,000.
>
> Is there a way for Graphite to draw this line without creating additional
> RRDs?
>
> Thank you for your help!
>
> maz
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to     : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.