Hi All, We are using default jmxexporter spi for monitering the cluster(2.16), There are lot of metrics in the higher version, want to enable only required metrics with in specific metric registry at cluster side. For example, want to enable only StorageSize with in io.datastorage registry group.
Got to know we can enable, can somebody help us with sample spring xml configuration for the same. And also, we have enable only jmxexporterspi but sys view having metrics details, need to disable sys view metrics also. Any idea how to disable system view?, below is our server-config file. ############## Server config ########## <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <!-- Load external properties file. --> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="file:${PROPERTY_FILE_PATH}" /> </bean> <bean class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="igniteInstanceName" value="${IGNITE_INSTANCE_NAME}" /> <property name="peerClassLoadingEnabled" value="true"/> <property name="metricsLogFrequency" value="0" /> <property name="failureDetectionTimeout" value="60000" /> <property name="clientFailureDetectionTimeout" value="120000" /> <property name="networkTimeout" value="60000" /> <property name="workDirectory" value="${metadataWorkDir}"/> <property name="rebalanceThreadPoolSize" value="${rebalanceThreadPoolSize}"/> <property name="snapshotPath" value="${snapshotsDirPath}"/> <!--<property name="clientConnectorConfiguration"><bean class="org.apache.ignite.configuration.ClientConnectorConfiguration" ><property name="jdbcEnabled" value="false"/></bean></property>--> <!--<property name="authenticationEnabled" value="true"/>--> <property name="gridLogger"> <bean class="org.apache.ignite.logger.log4j2.Log4J2Logger"> <constructor-arg type="java.lang.String" value="${IGNITE_SCRIPT}/ignite-log4j2.xml" /> </bean> </property> <property name="dataStorageConfiguration"> <bean class="org.apache.ignite.configuration.DataStorageConfiguration"> <property name="defaultDataRegionConfiguration"> <bean class="org.apache.ignite.configuration.DataRegionConfiguration"> <property name="metricsEnabled" value="true"/> <property name="persistenceEnabled" value="true" /> <!--<property name="maxSize" value="#{10L * 1024 * 1024 * 1024}"/> --> <property name="maxSize" value="${maxSize}" /> <!-- Increasing the buffer size to 4 GB. --> <property name="checkpointPageBufferSize" value="${checkpointPageBufferSize}" /> </bean> </property> <property name="storagePath" value="${storagePath}" /> <property name="walPath" value="${walPath}" /> <property name="walArchivePath" value="${walArchivePath}" /> <!--<property name="walMode" value="LOG_ONLY" />--> <property name="walMode" value="${walMode}" /> <property name="walFlushFrequency" value="${walFlushFrequency}"/> <property name="pageSize" value="${pageSize}" /> <!-- Enable write throttling. --> <property name="writeThrottlingEnabled" value="true" /> <property name="walHistorySize" value="1" /> <property name="metricsEnabled" value="true"/> <property name="defaultWarmUpConfiguration"> <bean class="org.apache.ignite.configuration.LoadAllWarmUpConfiguration"/> </property> </bean> </property> <property name="metricExporterSpi"> <bean class="org.apache.ignite.spi.metric.jmx.JmxMetricExporterSpi"/> </property> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> <property name="addresses"> <bean class="org.springframework.util.StringUtils" factory-method="commaDelimitedListToSet"> <constructor-arg type="java.lang.String" value="${nodeIpAddresses}" /> </bean> </property> </bean> </property> </bean> </property> <property name="communicationSpi"> <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> <property name="socketWriteTimeout" value="60000"/> </bean> </property> </bean> </beans>