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

view long term data charts #397

Closed
raedah opened this issue May 9, 2016 · 11 comments
Closed

view long term data charts #397

raedah opened this issue May 9, 2016 · 11 comments

Comments

@raedah
Copy link

raedah commented May 9, 2016

I would like the ability to click on a chart get historical cumulative data over different time frames. Daily, Weekly, Monthly. This would allow me to check changes in usage patterns over longer periods.

@ktsaou
Copy link
Member

ktsaou commented May 10, 2016

Yes you are right. However the history netdata has today is too short (1 hour by default).

Why?

Netdata tracks about 1.500 metrics on most systems (more depending on how many disks, network cards, applications, etc you use - I have a server with 5.000 metrics) and it collects data per second. Do the math with 4 bytes per metric per second. The size of the database gets astronomical for a month of data:

4 bytes * 1500 dimensions * 86400 seconds per day * 30 days = 15.552.000.000 = 15.5 GB

It is not practical to have so much storage for just performance data.
I am trying to improve this (it will be improved... a lot!)

@raedah
Copy link
Author

raedah commented May 10, 2016

Graph data would need to be condensed down to the unit. So no zoom.
It would look something like this.
1 hour view = 1 second granularity
1 day view = 1 minute granularity
1 week view = 1 hour granularity
1 month view = 1 day granularity
1 year view = 1 week granularity

So we would never have to store second granularity past the first hour, nor have to store minute granularity past a day. Maybe these time frames are just approximate, and its really just a matter of figuring out the pixel width of a time period. The pixel width of the year chart may only be 600 pixels wide which means that 2 rows of data per day would be enough (or one row of data every 39.45 hours to be more exact.)

@ktsaou
Copy link
Member

ktsaou commented May 10, 2016

These will only be useful as statistics of past performance.

There is already a task to create snapshots #309. Snapshots could create what you propose, So every hour a snapshot is taken with 1 minute detail, every day a snapshot with 1 hour detail, etc.

I'll mark this as duplicate for snapshots.

@ktsaou
Copy link
Member

ktsaou commented Dec 21, 2016

Cleaning up day. I am closing this, but keep in mind netdata has now support for backend servers (graphite, opentsdb) so long term data archiving is implemented.

@ktsaou ktsaou closed this as completed Dec 21, 2016
@jpic
Copy link

jpic commented Jan 17, 2018

I think netdata would need at least some basic way to see out zoomed trends to replace munin once and for all. I think a lot of people don't want to go through setting up Grafana (graphite, elastic, prometheus) for this. Perhaps keep this in mind in case you can think of a quick hack that would do that trick ;)
Keep up the great work <3

@lssilva
Copy link

lssilva commented Feb 7, 2018

I agree with @jpic Netdata would be great if we could also have long term data / trends having to install two system would make easier to install one that does it all.

@chaoyongzhou
Copy link

@ktsaou The hourly, daily, weekly, monthly, yearly would not cost much space.

You can setup 5 more RRD databases. One record in hourly database is the average of recent 60 minutes data. One record in daily database is the average of recent 24 hours data. etc.

It is simple, right?

@linuzer
Copy link

linuzer commented Mar 4, 2018

@ktsaou
I also would like to reopen this issue, since snapshots are not the same and don't help in this issue. Citing from #309

snapshots are saved on your computer (not the server) and cannot be triggered programmatically.

So when there are no automatic snapshots, how can we have a long-term view on the data?
At least there need to be an automatic mechanism to create snapshots in the way raedah described above and these data need to be integrated in the display-mechanics when zooming-out the graphs.

@Aadniz
Copy link

Aadniz commented Jun 17, 2018

Comming from Monitorix, it's pretty different to view real-time rather than long therm.
Monitorix includes timespans of 1 hour, 1 day, 1 week, 1 month and 1 year, I mainly use the weekly view.

I've never monitored my server's resources so closely and real-time before, and it makes it hard to compare with yesterday for example.

image
image

The only thing that would fulfill my request towards netdata is this function. So far, I'm really impressed by all the stats, functions and user friendliness.. But it just needs this function and I would give it a 10/10

@Karlheinzniebuhr
Copy link

+1 for a long time chart feature

@cakrit
Copy link
Contributor

cakrit commented Jan 29, 2019

Since this issue was referenced recently, I'm linking it with our plan to change the database so that we can reduce the memory requirements and increase the retention period. The issue with the new design is #4687

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants