Enable mountstats for node_exporter by default?
While researching NFS I/O issues with a number of customers, I came across a number of articles that indicate that the NFS RPC backlog would be a useful metric to monitor:
- https://www.thegeekdiary.com/how-to-troubleshoot-nfs-transfer-latency-issues-using-nfsiostat-in-centos-rhel/
- http://nfs.sourceforge.net/nfs-howto/ar01s05.html (see section 5.7)
It looks like these stats are available via the mountstats
NFS statistics, which can be enabled with the --collector.mountstats
flag in the node-exporter.
@bjk-gitlab As I know node-exporter only enables metrics by default if it's prudent, I'm wondering what downsides would there be to enabling this by default?
Here is the settings in /etc/gitlab/gitlab.rb
:
node_exporter['flags'] = {
'collector.textfile.directory' => "#{node['gitlab']['node-exporter']['home']}/textfile_collector",
'collector.mountstats' => true
}
Grafana has a dashboard for this: https://grafana.com/dashboards/8862
Edited by Stan Hu