Graph constantly scaling with 1 min auto-refresh

Asked by Eric Becker

I would like to create some real-time graphs of local CPU stats. I have graphite-carbon 0.9.12-3 and graphite-web 0.9.12+debian-3 installed with collectd 5.4.0-3ubuntu2. I'm using collectd to collect local linux stats (disk, cpu, memory, network) at 1 second interval and graphite is set to store at 1 second interval. I've set "var interval = 1;" in composer_widgets.js.

When I set the graph to auto-refresh the past 1 min the graph rescales every second (as expected per the var interval setting above), but unfortunately it shifts the y axis forward and back 10 seconds each interval; hiding and then showing the latest intervals. I would expect the graph to render smoothly and not shift backwards in time 10 seconds, then jump forward every other second.

Question information

Language:
English Edit question
Status:
Expired
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#1

Me personally never tried running Graphite on such short interval, not sure if it has enough time to render graphs properly. But maybe it's something else.
Is your storage schema properly aligned? I mean you have lowest retention = 1 sec? Something like
pattern = .*
retentions = 1s:..,... ?

IMO sor such small update interval you need something more fast for graphs rendering, e.g. Grafana (http://grafana.org)

Revision history for this message
Eric Becker (ericbecker33) said :
#2

Yes, retention configuration:

[carbon]
pattern = ^collectd*
retentions = 1:1d, 1m:7d, 5m:30d

And one of the whisper files:

maxRetention: 2592000
xFilesFactor: 0.5
aggregationMethod: average
fileSize: 1261492

Archive 0
retention: 86400
secondsPerPoint: 1
points: 86400
size: 1036800
offset: 52

Archive 1
retention: 604800
secondsPerPoint: 60
points: 10080
size: 120960
offset: 1036852

Archive 2
retention: 2592000
secondsPerPoint: 300
points: 8640
size: 103680
offset: 1157812

I do have grafana running and with the lowest settings (5 min ago refresh every 5s) the graphs look fine. If I set the same on graphite, I still get the same issue. Another odd thing I noticed is that if I delete the whisper files it takes much longer for graphite to recognize they're gone and for ~10 seconds the graphs rotate between showing no data, the old data, and the new data. I must be missing something with the rendering settings related to caching.

Revision history for this message
Jason Dixon (jason-dixongroup) said :
#3

Are you running multiple nodes? With memcached?

Revision history for this message
Eric Becker (ericbecker33) said :
#4

Single node, no memcached.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.