Curve Fitting Graphs
Moderators: Developers, Moderators
Curve Fitting Graphs
Is there any way to create a 'running average' on a graph for an extended time period?
For example, see the mock up below, where the red line represents a curve fitted running averatge for the whole time window (hand drawn approximate).
Using the average consolidation function doesn't change the graph.. since it's still a '5 minute' average.... what I'm looking for is a 1 hour or more 'running' average.
For example, see the mock up below, where the red line represents a curve fitted running averatge for the whole time window (hand drawn approximate).
Using the average consolidation function doesn't change the graph.. since it's still a '5 minute' average.... what I'm looking for is a 1 hour or more 'running' average.
- Attachments
-
- untitled.JPG (36.21 KiB) Viewed 4286 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
You're looking in the wrong place - Click Graph Management, and a sub-menu called CDEFs appears. That's where you want to be.dononeil wrote:There doesn't seem to be a way to access the "TREND" cdef in Cacti RRD config... only min/max/avg/last. Am I looking in the wrong place, or does Cacti not support this yet?gandalf wrote:Please use a CDEF that defines the "TREND" function, see man rrdgraph_rpn
Reinhard
However, as far as I can see, Cacti doesn't support CDEFs with TREND - that isn't in the list of available functions...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Yeah, I looked there too and didn't see anything either. So, I guess I'm out of luck, or we need a new feature.Howie wrote:You're looking in the wrong place - Click Graph Management, and a sub-menu called CDEFs appears. That's where you want to be.dononeil wrote:There doesn't seem to be a way to access the "TREND" cdef in Cacti RRD config... only min/max/avg/last. Am I looking in the wrong place, or does Cacti not support this yet?gandalf wrote:Please use a CDEF that defines the "TREND" function, see man rrdgraph_rpn
Reinhard
However, as far as I can see, Cacti doesn't support CDEFs with TREND - that isn't in the list of available functions...
You can create your hourly trend line with the following CDEF (give it whatever name you like) with a single custom string:
CURRENT_DATA_SOURCE,3600,TREND
Just add a second Line item to your graph and use the CDEF define above for the line as well as the legend.
You may have to convert bits to bytes first to ensure your data remains consistent.
CURRENT_DATA_SOURCE,3600,TREND
Just add a second Line item to your graph and use the CDEF define above for the line as well as the legend.
You may have to convert bits to bytes first to ensure your data remains consistent.
Who is online
Users browsing this forum: No registered users and 1 guest