Describes how to enable metric collection for a volume, and gather volume statistics.
On all new installations, this feature is enabled by default and you only need to enable metrics collection for each volume. If you are upgrading from a version prior to MapR version 6.0, to start collecting volume metrics that you can then visualize in Grafana, you must enable the metrics collection feature and then enable metrics collection for each volume.
You can enable metrics collection from the command-line and using the Control System.
/opt/mapr/bin/maprcli cluster feature enable -name mfs.feature.metrics.support
/opt/mapr/bin/maprcli volume create -name <volume-name> -path <volume-mount-path> -type <volume-type> -metricsenabled true
For more information, see volume create./opt/mapr/bin/maprcli volume modify -name <volume-name> -metricsenabled true
For more information, see volume modify.for i in `/opt/mapr/bin/maprcli volume list -columns n | grep -v mapr | grep -v volumename`; do echo $i; /opt/mapr/bin/maprcli volume modify -name $i -metricsenabled true; done