I followed the accepted answer in this post: Graphite - render precision lower than 1 minute
but still couldn't get graphite to give a 5-second precision time period.
I am using centOS 7 and here are my configurations that I have added/changed:
#/etc/graphite-web/local_settings.py
...
DEFAULT_CACHE_DURATION = 5
...
# /etc/carbon/storage-schemas.conf
...
[statsd]
pattern = ^stats\.
retentions = 5s:30d
...
statsd is flushing every 5 seconds correctly according to the following settings.
# statsd config.js
{
graphitePort: 2003
, graphiteHost: "127.0.0.1"
, port: 8125
, backends: [ "./backends/graphite" ]
, graphite: {
legacyNamespace: false
}
, flushInterval: 5000
}
I have also executed the restart commands:
sudo systemctl restart carbon-cache
sudo systemctl restart statsd
Copyright Notice:Content Author:「cr001」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73003602/graphite-precision-less-than-1-minutes-in-centos7-what-am-i-missing