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

rra average value not expected #589

Closed
UlricQin opened this issue Mar 6, 2015 · 5 comments
Closed

rra average value not expected #589

UlricQin opened this issue Mar 6, 2015 · 5 comments

Comments

@UlricQin
Copy link

UlricQin commented Mar 6, 2015

hi,
we use rrdtool as our backend tsdb and use https://github.com/ziutek/rrd to read/write rrd

metric: cpu.idle time: last 12hour cf: AVERAGE expected

cpu.idle_12hour_average.png . . .

metric: cpu.idle time: last 24hour cf: MAX expected

cpu.idle_24h_max

metric: cpu.idle time: last 24hour cf: AVERAGE not expected

cpu.idle_24h_average

our rra settings:

// step:60s, heartbeat:  12h
c.RRA("AVERAGE", 0.5, 1, 720)

// 5m 2d
c.RRA("AVERAGE", 0.5, 5, 576)
c.RRA("MAX", 0.5, 5, 576)
c.RRA("MIN", 0.5, 5, 576)

// 20m 7d
c.RRA("AVERAGE", 0.5, 20, 504)
c.RRA("MAX", 0.5, 20, 504)
c.RRA("MIN", 0.5, 20, 504)

// 3h 3month
c.RRA("AVERAGE", 0.5, 180, 766)
c.RRA("MAX", 0.5, 180, 766)
c.RRA("MIN", 0.5, 180, 766)

// 1day 5year
c.RRA("AVERAGE", 0.5, 720, 730)
c.RRA("MAX", 0.5, 720, 730)
c.RRA("MIN", 0.5, 720, 730)

as you see, there are some point > 100 in the third graph. I'm confused...

@oetiker
Copy link
Owner

oetiker commented Mar 6, 2015

In order to debug this, you have to look at the original data you fed to rrdtool.

@UlricQin
Copy link
Author

UlricQin commented Mar 6, 2015

The original data are all less than 100. The first graph and second graph are all less than 100. These three graph use the same original data: one rrd file, three view.

@oetiker
Copy link
Owner

oetiker commented Mar 6, 2015

So please create a little shell script, which creates the rrd file, fills it with data and then produces the offending charts. Then I can look at what is going on. Also, which version of rrdtool are you using?

@UlricQin
Copy link
Author

UlricQin commented Mar 9, 2015

We use version origin/1.4
It is not stable repetition...

The three charts use the same original data and build from one rrd file.
The second chart's cf is MAX and the thrid chart's cf is AVERAGE. All MAX points are less than 100. Why some AVERAGE points greater than 100?

I'll create a little script to test.

@oetiker
Copy link
Owner

oetiker commented Mar 9, 2015

when doing a sample script, make sure to work with fixed timestamps ... if a problem is not reproducible, the reason is often that it only occurs with specific values.

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

2 participants