Hello, Igniters! We need the ability to enable or disable statistics for caches in runtime. For now, there is a cache configuration property which seems modifiable in runtime and this, at first sight, works for local node. But there are no methods to enable or disable statistics for cache cluster wide.
So, I propose: Create a new JMX operation in CacheClusterMetricsMXBeanImpl/CacheLocalMetricsMXBeanImpl to enable/disable statistics for cache. When invoked, operation must set statisticsEnabled flag in cache configurations. Then send a new type of DiscoveryCustomMessage, which will set this flag for cache on other nodes in cluster. Do you have objections to this solution?