Graphite not showing Data older than a week

metrics
graphite

#21

hello
this could help me too, in which file is this information to be added?

1m:1d,5m:7d,30m:30d,1h:1y,1d:4y


(Thomas Widhalm) #22

/etc/carbon/storage-schemas.conf


(Christian Moritz) #23

ive got a mad problem…

one some of my hosts i can see the graphs from graphite/carbon only for the badly 1 day…
and on other hosts i can see all like 1 week, 1 month.
and more stupid…
somethimes i got the issue with the “1 day graph” on all hosts ??? some minutes later it is working again fine with the scaling from the graph.

this is my carbon-storrage config:

[carbon]
pattern = ^carbon\.
retentions = 60:90d

[icinga2_default]
pattern = ^icinga2\.
retentions = 1m:2y,5m:3y,30m:4y,360m:5y

[icinga2_internals]
pattern = ^icinga2\..*\.(max_check_attempts|reachable|current_attempt|execution_time|latency|state|state_type)
retentions = 5m:7d

[default_1min_for_1day]
pattern = .*
retentions = 60s:1d

my icinga versions…
Icinga2: 2.9.1
Icingaweb2: v2.6.1
director: 1.5.1
graphite: 1.1.0
vsphere: 1.1.0

BTW: my manager wants these carbon storrage settings to get his SLA quota properly monitored and reported…


#24

No you don’t have do delete them
There are whisper scripts that you can use to change the aggregation of the whisper files

You can change your whisper files with something like this:

sudo -u _graphite find /var/lib/graphite/whisper/icinga2/$YOURHOSTNAMEHERE/services/ -type f -name '*.wsp' -exec python /etc/graphite/whisper-resize.py {} --nobackup 60s:14d 120s:90d 15360s:360d \;

If the command is not clear to you just come back on me


#25

I am not entirely sure if this is the root of you problems but I would change

[icinga2_default]
pattern = ^icinga2\.
retentions = 1m:2y,5m:3y,30m:4y,360m:5y

to

[icinga2_default]
pattern = ^icinga2\..*  <--
retentions = 1m:2y,5m:3y,30m:4y,360m:5y

And then of coures move your rule for internals above the icinga2_default scheme


(Christian Moritz) #26

my problem is, sometimes it works fine… and somethimes ive got the graph issue.
so it cant be somethin insight the carbon cashe storrage shema config.


#27

Well that depends what storage schema was applicable at the time the whisper files were created.

But maybe it makes sense to start a new topic about your issue