Subscribe
Highlighted

NetApp Harvest Grafana showing only 7 days of metrics

Hi,

 

Grafana is showing only 7 days of metrics only even after cofniguring the rention more than 7 days. Not sure what is the issue with the configuration.

 

[netapp.capacity]
pattern = ^netapp\.capacity\.*
retentions = 15m:60d, 1d:1y
[netapp.poller.capacity]
pattern = ^netapp\.poller\.capacity\.*
retentions = 15m:60d, 1d:1y
[netapp.perf]
pattern = ^netapp\.perf\.*
retentions = 60s:30d, 5m:30d, 15m:60d, 1h:1y
[netapp.poller.perf]
pattern = ^netapp\.poller\.perf\.*
retentions = 60s:30d, 5m:30d, 15m:60d, 1h:1y
[netapp.perf7]
pattern = ^netapp\.perf7\.*
retentions = 60s:30d, 5m:30d, 15m:60d, 1h:1y
[netapp.poller.perf7]
pattern = ^netapp\.poller\.perf7\.*
retentions = 60s:30d, 5m:30d, 15m:60d, 1h:1y

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

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

 

Thanks in Advance,

Krish

Re: NetApp Harvest Grafana showing only 7 days of metrics

Hi @krishgudd,

 

The frequency and retention settings of a database file are set the first time the metric arrives.  The file you shared is correct for a much long retention but is it possible that you modified this file after Harvest was already sending metrics? The answer in this post is a more detailed answer on how to change the retention if this is the case.  

 

You can also check the retention of existing database files using the utility "whisper-info.py <yourmetricname.wsp>" (or whisper-info on some distributions).  The output of this command shows frequency and number of datapoints that are retained.  This will tell if you if 7 days are to be retained.  The other place you can check are carbon create.log files (Ubuntu:  /var/log/carbon  RHEL: /opt/graphite/storage/log/carbon-cache/carbon-cache-a) to find the retention used in new creates. Again, here you can check what retention is being used for new creates.

 

Hope this helps!

 

Cheers,
Chris Madden

Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)

Blog: It all begins with data

 

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO or both!