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

No Graphs from graphite for 12 hours or more (Days, Weeks, Months and Years) #275

Closed
geossh opened this issue Feb 17, 2022 · 6 comments
Closed

Comments

@geossh
Copy link

geossh commented Feb 17, 2022

Hi,

First of all big thanks to Jordan and all the other contributors for your amazing work.

Icinga2 with Icingaweb2 and Graphite runs quite perfect in drawing graphs for 5 min up to 6 hours, but fails to draw the graph for days, weeks, months and years (at least in my environment).

Anyone an Idea?

Thanks,
Hans

@jjethwa
Copy link
Owner

jjethwa commented Feb 17, 2022

Hi @geossh

I'm not an expert on Graphite unfortunately, but I think you might need to tweak the carbon configuration with your retention and collation policies: https://graphite.readthedocs.io/en/latest/config-carbon.html

@geossh
Copy link
Author

geossh commented Feb 21, 2022

Hi Jordan,

You are an expert on graphite too :-)

It was exactly the retensions in data/graphite/conf/storage-schemas.conf. First I realized that Icinga2 is doing a check every 5 minutes only and that did not correspond with the retensions set in storage-schemas.conf. Which was
retentions = 10s:6h,1m:6d,10m:1800d

So I changed that to
retentions = 5m:10d,15m:30d,30m:90d,360m:4y

Now new *.wsp files should be correctly filled. Next I wanted to migrate the already existing *.wsp files to the new retensions. First I had to install python3-whisper (my host is a Ubuntu-Server):

apt install python3-whisper

And after that I ran:
find /opt/icinga2/data/graphite/storage/whisper/icinga2/ -type f -name '*.wsp' -exec /usr/bin/whisper-resize --nobackup {} 5m:10d 15m:30d 30m:90d 360m:4y ;

And now I have a perfect drawing for days and weeks too :-)
Maybe it is possible for the next upgrade of your amazing docker image (if there will be one once a time) to change the retensions of storage-schemas.conf to the icinga default (which is a check every 5 minutes).

Thanks again and all the best,
Hans

@geossh geossh closed this as completed Feb 21, 2022
@jjethwa
Copy link
Owner

jjethwa commented Feb 21, 2022

That's great news, @geossh and thanks so much for the information, it's really helpful! The storage-schemas.conf is default from the graphite official image, so maybe we need to figure out a way to inject the updated retention config line into it.

@geossh
Copy link
Author

geossh commented Feb 21, 2022 via email

jjethwa added a commit that referenced this issue Feb 21, 2022
@jjethwa
Copy link
Owner

jjethwa commented Feb 21, 2022

Thanks @geossh 😄 Added a link to your comment in the README and if I figure out a good way to inject the config, I'll let you know.

@4rne
Copy link

4rne commented Jan 23, 2024

And after that I ran: find /opt/icinga2/data/graphite/storage/whisper/icinga2/ -type f -name '*.wsp' -exec /usr/bin/whisper-resize --nobackup {} 5m:10d 15m:30d 30m:90d 360m:4y ;

Github seems to have stripped the \; at the end so the command should be:
find /opt/icinga2/data/graphite/storage/whisper/icinga2/ -type f -name '*.wsp' -exec /usr/bin/whisper-resize --nobackup {} 5m:10d 15m:30d 30m:90d 360m:4y \;

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

3 participants