Grafana is showing only 2 days of metrics only, even after cofniguring the rention more than 2 days. Not sure what is the issue with the configuration. The retention doesn't update and stay to 86400 (2 days) when runing whisper-info.py command.
I followed instruction in different articles and doesn't help, can you pls help me?
[root@]# cat /opt/graphite/conf/storage-schemas.conf # Schema definitions for Whisper files. Entries are scanned in order, # and first match wins. This file is scanned for changes every 60 seconds. # # [name] # pattern = regex # retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...
# Carbon's internal metrics. This entry should match what is specified in # CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings [carbon] pattern = ^carbon\. retentions = 60:90d
Hi, not a Graphite expert, but I suspect that your regex patterns don't catch the counters emitted by Harvest, therefore your default retention schema is applied by Graphite (in your case the default schema is to keep counters 1 day, see the last line in your storage-schemas.conf).
So you can either change the default retention schema, or double-check the regular expressions.