Prometheus Monitoring
This page discusses the mechanisms through which you can monitor NCache clusters for the Prometheus third-party tool.
Promotheus Metrics Publishing
To start publishing metrics to the NCache Service, set the EnableMetricsPublishing
tag to true
. By default, the counters information is not uploaded to the NCache Service, but you can change this behavior, by setting the following tag in the Alachisoft.NCache.Service.dll.config
to true:
<add key="NCacheServer.EnableMetricsPublishing" value="false"/>
Prometheus Counter Monitoring
By default, the Prometheus agent is disabled and you can't monitor your cache clusters using Prometheus because it doesn't pull any metrics from the NCache Service. To allow the Prometheus agent to access metrics information from the NCache Service and monitor your cache cluster using its counters, set the following tag as true.
<add key="NCacheServer.EnablePrometheusMonitoring" value="false"/>
Metric Server Port
NCache allows you to configure the port where you want to host the Prometheus agent to collect and view the metrics published by the NCache Service. The MetricServerPort
tag can be used to configure this port. By default, the Prometheus agent is hosted on 8255
.
<add key="NCacheServer.MetricServerPort" value="8255"/>
System Counter Monitoring
By default, System Counters Monitoring is disabled to reduce extra load when counter publishing is enabled. To monitor the System Counters, set the following tag as true.
<add key="NCacheServer.EnableSystemCountersMonitoring" value="false"/>