This NCache Grafana app plugin provides a set of dashboards that allows a user to monitor NCache counters. NCache Grafana app plugin uses Prometheus as datasource.
- Distributed Cache
- Distributed Cache with Persistence
- Pub/Sub Messaging
- Distributed Lucene with Persistence
- Client
- Bridge
To Setup Grafana for NCache monitoring you have to follow the following steps:
Alachisoft.NCache.Service.dll.config(.Net)/Alachisoft.NCache.Service.exe.config(Framework)shipped at [NCHOME]\bin\service that allows you to enable/disable monitoring of your caches on Prometheus
- <add key="NCacheServer.EnableMetricsPublishing" value="true"/>
- <add key="NCacheServer.EnablePrometheusMonitoring" value="true"/>
Restart the NCache Service.
NCache currently supports Prometheus 2.3.7.1 (LTS) or above.
Open prometheus.yml in an editor and add all those nodes as targets for which you want to monitor NCache counters.
For example, if you want to monitor 192.168.1.7 the config file will look like this:
scrape_configs:
- job_name: "ncache-metrics"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets:["192.168.1.7:8255"]
Go to the folder where you extracted the Prometheus setup and run prometheus.exe
- Install Grafana from (https://grafana.com/grafana/download)
- Go to [Grafana-INSTALL-DIR]\conf\default.ini file, set the
app_mode=development - Download [NCache Grafana plugin] from (https://www.alachisoft.com/downloads/ncache-grafana.zip), unzip the downloaded folder and place the NCache folder on [Grafana-Installation-Directory]\data\plugins.
- Restart the Grafana service
- Go to Configuration -> Datasource.
- Click on
Add Data Sourceand addPrometheusas a Datasource
- Go to Configuration -> Plugins.
- On the search bar, search for
NCache. - Click on
Enableto add the NCache plugin. - After enabling go to
Dashboardstab and import required dashboards from this page
For detailed documentation please visit:
https://www.alachisoft.com/resources/docs/ncache/admin-guide/monitor-ncache-grafana.html https://www.alachisoft.com/resources/docs/ncache/admin-guide/monitor-ncache-prometheus.html