Discussion:
[rrd-users] [GRAYMAIL] Re: Re: RE: RE: Question about trend line
(too old to reply)
rseiwert
2015-08-14 00:40:12 UTC
Permalink
Anything you can calculate you can draw. If you can define it as an equation you can put it in a cdef.
Of course it's going to take some thought, understanding RPN, and a little trial and error.
At this point you probably would be off using one graphs generated by vnstat.
Not knowing the exact nature of your data I cannot say exactly what you want. I
It seems you want to draw a line from 0,0 through the last point of your data, this is prediction I think vnstat uses.
I almost can see the solution but I don't want to work it out wrong here.
Something like (last value / secs in period of last value) * Step width then create a cdef that equals this value * count.
There may be a better way, if someone knows please enlighten me.

From: Ondrej [via RRD Mailinglists] [mailto:ml-node+***@n2.nabble.com]
Sent: Thursday, August 13, 2015 4:28 PM
To: Robert C. Seiwert <***@vcaglobal.com>
Subject: [GRAYMAIL] Re: Re: RE: RE: Question about trend line

I decided to have vnstat estimation line information in my graph and I am considering also to have LSL. in future i'll try to do some good combination.

but one more question. Is is possible to draw a skewed line in RRD? let say, the very beginning of the graph the line would start at zero and at the very end it would end at number that would reflect the trend. for users this quick look would give immediate awareness where there are, even the line would not perfectly copy true utilisation one.

i did not find the way how to draw skewed line.
________________________________
If you reply to this email, your message will be added to the discussion below:
http://rrd-mailinglists.937164.n2.nabble.com/Question-about-trend-line-tp7583077p7583094.html
To start a new topic under RRDtool Users Mailinglist, email ml-node+***@n2.nabble.com<mailto:ml-node+***@n2.nabble.com>
To unsubscribe from RRD Mailinglists, click here<http://rrd-mailinglists.937164.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=937164&code=cm9iQHZjYWdsb2JhbC5jb218OTM3MTY0fC0yMTE0MzU4MzIz>.
NAML<http://rrd-mailinglists.937164.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Question-about-trend-line-tp7583077p7583095.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
Ondrej
2015-08-14 21:06:28 UTC
Permalink
I somehow ended up with desired output and used your way for equation for
getting a number a process it in CDEF to get the final line.

CDEF:trend=dt_month,POP,$COEF,COUNT,* \

$COEF is my final previously calculated number that is close to "24" when
you print it, but I still have doubts about that number. How to get "step
width" that you mentioned? Playing with numbers I found that "19500" as step
width, gives proper line direction, but gives me no clue why 19500. This is
rather match question but I would still appreciate your comment on that.
thanks

<Loading Image...>



--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Question-about-trend-line-tp7583077p7583100.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
Loading...