• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
  • Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Download
  • Monitor Caches
  • Monitor NCache Using Grafana
Show / Hide Table of Contents
  • Administrator's Guide
  • NCache Architecture
    • Cache Topologies
      • Partitioned Topologies
      • Replicated Topology
      • Mirrored Topology
      • Scalability in Topologies
    • Dynamic Clustering
    • Local Cache
    • Cache Client
    • Client Cache
    • Bridge for WAN Replication
    • Connectivity with Load Balancer
    • Serialization Format
    • Data Encryption
    • Data Compression
    • Data Load Balancing
    • Pipelining
    • Cache Server Backward Compatibility
    • Client Backward Compatibility
    • Eviction
    • Indexing
    • Split-Brain
    • Maintenance Mode
    • Runtime Data Sharing
    • Portable Data Types
    • Class Versioning
    • IP Binding with Multiple NICs
    • Graceful Node Down
    • Separate Cache Host Process
    • Self Healing Dynamic Clustering
    • Distributed Cache with Persistence
  • NCache Management Center
  • Configure Caches
    • Create a Cache
      • Local Cache Overview
        • Local Cache
        • Local Cache with Persistence
        • Pub/Sub Messaging Cache
        • Add Existing Cache
      • Clustered Cache Overview
        • Distributed Cache
        • Distributed Cache with Persistence
        • Pub/Sub Messaging Cache
        • Add Existing Cache
        • Troubleshooting
    • Remove Cache
    • Clear Cache
    • Add Server Node
    • Remove Server Node
    • Add Test Data
    • Configure Query Indexes
    • Configure JSON Query Indexes
    • Compact Serialization
      • Non-Generic Registration
      • Non-Generic Unregistration
      • Generic Registration
      • Using Type Handler
    • Deploy Providers
    • Configure Custom Dependency
    • Add Data Source Providers
      • Read-through Provider
      • Write-through Provider
      • Write-behind Provider
    • Loader and Refresher
    • Configure Maintenance Mode
      • Stop for Maintenance Mode
      • Exit Maintenance Mode
    • Configure LINQPad
      • Configure LinqPad for NCache
      • Querying Data in LinqPad
  • Configure Clients
    • Add Client Node
    • Remove Client Node
  • Configure Client Cache
    • Create Client Cache
    • Create Client Cache with NuGet
    • Enable Client Cache on Client Nodes
    • Disable Client Cache on Client Nodes
    • Remove Client Cache
  • Management Operations
    • Start Cache
    • Stop Cache
    • Restart Cache
    • Manage Cache Service on a Server Node
    • Data Load Balancing
    • Invoke Refresher Dataset
    • Import/Export Cache Data
    • Suspend/Resume NCache Data Persistence
    • Backup and Restore NCache Persisted Data
  • Cache Settings
    • General Cache Settings
      • Cache Size
      • Cache Isolation Levels
      • Cache Serialization Format
      • Cache Data Expiration
    • Cache Cluster Settings
      • Ports
      • Operation Timeout
      • Configure Pipelining
      • Statistic Replication Interval
      • Connection Retries
      • Retry Interval
      • Split-Brain Auto Recovery
    • NCache Persistence Settings
      • Store Information
      • Persistence Interval
    • Error Logging
    • Cache Level Events
    • Client Activity Events
    • Eviction Policy
    • MapReduce
    • Register Classes for Portable Data Sharing
    • Compression
    • Email Notifications
    • Bind IP with Multiple NICs
    • Heartbeat
    • Keep Alive
    • Client Death Detection
    • Communication Reliability
    • Auto Start Cache on Boot
    • Nagle's Algorithm
    • Dual Socket
    • Configuration Files
      • Client Side Configurations
        • Client Config
        • EF Caching Config
      • Server Side Configurations
        • Cache Config
        • Bridge Config
        • Security Config
        • TLS Config
        • Monitoring Config
        • Emails Template
  • Cache Server Settings
    • Server Connectivity
    • Bind to Multiple NICs
    • Server Ports
    • Memory
    • Custom Dependency
    • Request Inquiry
    • Windows Events
    • Message Events
    • Expiration & Eviction
    • SQL Server
    • Logging
    • Monitoring
    • Persistence Data Loading Retries
    • Miscellaneous Configurations
  • Bridge Server Settings
  • Cache Client Settings
  • Client Cache Settings
  • Configure Security
    • Configure Authentication and Authorization
    • Configure Encryption for Cache
    • Configure TLS Encryption
    • Configure HTTPS for NCache Management Center
  • Configure Bridge for WAN Replication
    • Create Bridge
    • Add Clustered Caches to Bridge
    • Configure Bridge Settings
    • Change Cache Synchronization Modes
    • Bridge Management
    • Synchronize Caches in Bridge
    • Leave Bridge
    • Remove Cache from Bridge
    • Configure Conflict Resolver
  • Setup Database for Cache Synchronization
    • Setup SQL Server Environment
    • Setup Oracle Database Environment
    • Setup OleDb Environment
    • Setup SQL Server for CLR Procedures
  • Simulate NCache Usage
  • Monitor Caches
    • Counters
      • Distributed Cache Counters
      • Distributed Cache with Persistence Counters
      • Pub/Sub Messaging Cache Counters
      • Cache Client Counters
      • Bridge Counters
    • Monitor NCache Using the NCache Management Center
      • Using Monitoring Dashboards
        • Configure Monitor Settings
        • Configure Event Logging
        • Configure API Logging
        • Built-in Dashboard
        • Custom Dashboard
        • Cluster Connectivity
        • NCache Email Alerts
      • Using Tabular Statistics
        • Configure Counters to Display Caching Statistics
        • Configure Counters to Display Pub/Sub Statistics
        • Configure Counters to Display Bridge Statistics
        • Browse Cache Statistics
        • Monitor Bridge
    • Monitor NCache Using Command Line Tools
      • Cache Server Statistics Using Command Line Tools
      • Cache Client Statistics Using Command Line Tools
    • Monitor NCache Using Windows PerfMon Tool
      • Cache Server Counters Using PerfMon
      • Cache Client Counters Using PerfMon
      • Bridge Counters Using PerfMon Tool
    • Monitor NCache Using Prometheus
    • Monitor NCache Using Grafana
    • Monitor NCache Using SNMP Counters
    • Monitor NCache Using JMX Counters
    • Memory Dumps
    • Logging
      • NCache Log Viewer
      • Performance Counters Logging
      • Windows Event Logging
      • Cache Health Alerts
      • Email Notifications on NCache Events
      • Cache Server Logging
      • Client Side API Logging
      • Cache Event IDs
      • Feature Usage Logging
    • Troubleshooting NCache Monitoring
      • Computer Name Not Found
      • Diskperf Not Installed
      • No READ Access to Perflib Subkeys
      • Unable to Connect to Remote Server
    • IPV6 Support

Monitor NCache using Grafana [Deprecated]

NCache provides a Grafana Application Plugin that collects and displays NCache metrics data from your cluster using Prometheus as a data source. These metrics are published by NCache Cluster to Prometheus which are then queried by the Grafana application.

Configure Grafana for NCache Monitoring

Follow these steps to configure the Grafana application to monitor NCache metrics on a feature-rich metrics dashboard:

Note

Grafana currently supports Prometheus 2.3.7.1 (LTS) or above.

Prerequisites

  • To use Grafana, you need to configure monitoring of NCache using Prometheus as Grafana collects the metrics published on the Prometheus server. To know how to enable monitoring using Prometheus, refer to Monitor NCache using Prometheus.
  • NCache Service must be running.
  • The caches you want to monitor should be configured and running.
  • Go to the %NCHOME%\config\monitoring.ncconf file in Windows and the /opt/ncache/config/monitoring.ncconf file in Linux and ensure the following counters are set to True based on your requirements.
    1. For Distributed Cache, enable the following counters from the NCache Category
      • Request/sec
      • Average us/Cache Operations
      • Additions/sec
      • Fetches/sec
      • Updates/sec
      • Deletes/sec
      • Cache Size (MB)
      • NCache CPU Usage
      • NCache Memory Usage (MB)
      • Count
      • Expirations/sec
      • Evictions/sec
    2. For Distributed Cache with Persistence, enable the following counters from the NCache Persistence Category
      • Requests/sec
      • Average us/Cache Operations
      • Additions/sec
      • Fetches/sec
      • Updates/sec
      • Deletes/sec
      • Db Reads/sec
      • Db Writes/sec
      • PersistQ Count
      • Count
      • NCache CPU Usage
      • NCache Memory Usage (MB)
    3. For Pub/Sub Messaging, enable the following counters from the NCache Category
      • Request/sec
      • Messages Count
      • Messages Published/sec
      • Messages Delivered/sec
      • Messages Expired/sec
      • Cache Size (MB)
      • Message Store Size
      • NCache CPU Usage
      • NCache Memory Usage
      • Topics Count
      • Evictions/sec
      • Average us/Cache Operations
    4. For the Client, enable the following counters from the NCache Client Category
      • Average Item Size
      • Read Operations/sec
      • Write Operations/sec
      • Additions/sec
      • Updates/sec
      • Fetches/sec
      • Avg us/Add
      • Avg us/Update
      • Avg us/Fetch
    5. For Bridge, enable the following counters from the NCache Bridge Category
      • Bridge Cache Size
      • Bridge Cache Count
      • Bridge Operations Sent
      • Bridge Operations Sent/sec
      • Bridge Operations Received
      • Bridge Operations Received/sec
      • Queue Count
      • Replicator Queue Count
      • Replicator Queue Size

Set Up the Grafana Application

Note

Grafana version 9.1.4 and above are supported in this setup.

  • Install the Grafana application on the machine from where you want to monitor your NCache servers. Refer to Grafana Getting Started guide to find the steps required to set up Grafana on your machine.

  • Once set up, you need to configure the Prometheus server as Grafana's data source. Follow the add data source guide to add Prometheus as a default data source.

Create a Dashboard for NCache Monitoring

After you have configured your Prometheus server as a data source, you can go ahead and start creating monitoring dashboards. There are two ways through which you can create a dashboard with multiple panels showing NCache counters. You can use an NCache plugin that includes pre-configured dashboards or you can create your custom dashboard and populate it with NCache metrics.

Use the NCache Plugin to Create a Dashboard

NCache provides 6 major dashboard plugins as JSON files:

  1. Distributed Cache Dashboard for cache server counters.
  2. Distributed Cache with Persistence Dashboard for Persistence Store counters.
  3. Pub/Sub Messaging Dashboard for the Pub/Sub message store counters.
  4. Client Dashboard for client cache counters.
  5. Bridge Dashboard for bridge and bridge cache counters.

Follow the steps provided below to configure NCache plugin in your Grafana application:

  • Download NCache Grafana plugin, unzip the downloaded file, and place the NCache folder (found inside the extracted ncache-grafana folder) on this path %GRAFANA-INSTALL-DIR%\grafana\plugins-bundled\internal\input-datasource.

  • Go to %GRAFANA-INSTALL-DIR%\conf\default.ini file, set app_mode=development.

  • Restart the Grafana service.

  • Run Grafana (which should open on the default port 3000).

  • Go to Configuration -> Plugins.

  • On the search bar, search for NCache.

  • Click on Enable to add the NCache plugin.

Tip

Go to the Dashboards tab of Plugins/NCache to view all dashboards shipped with this plugin. You can delete/re-import these dashboards from here.

Important

Please ensure that the NCacheSvc and NBridgeSvc services are running using your Windows Task Manager and it is best if you restart them.

Enabling the NCache plugin will preload the following dashboards in your application:

Distributed Cache Dashboard

NCache Distributed Cache Dashboard Grafana

Distributed Cache with Persistence Dashboard

NCache Distributed Cache with Persistence Dashboard

Pub/Sub Messaging Dashboard

NCache Pub/Sub Messaging Dashboard

Client Dashboard

NCache Client Dashboard Grafana

Bridge Dashboard

NCache Bridge Dashboard Grafana

Tip

If your dashboards are not working, try reimporting them as you did during the initial installation.

Create Custom Dashboard

After you have configured your Prometheus server as a data source, you can go ahead and start creating monitoring dashboards.

  • In order to create a new monitoring dashboard, go to Create -> Dashboard -> Add New Panel.

  • Under Metrics, select ncache. This will show you the list of all metrics collected from the Prometheus server.

Create New Grafana Dashboard

  • From the list, select the metric you want to monitor in that panel. You can customize this panel as well. Follow Grafana's guide on Dashboards to know how you can play around with this panel.

  • Click on Apply to apply these configurations to your dashboard.

  • Save the dashboard by assigning a name to it.

Note

Click on the Add panel Add Panel Button in Grafana button and follow the same steps to add more monitoring panels to your custom dashboard.

NCache Counters on Grafana Dashboard

See Also

Monitor NCache using the NCache Monitor
Monitor NCache using PerfMon Tool
Monitor NCache using Prometheus
Monitor NCache using SNMP Counters

In This Article
  • Configure Grafana for NCache Monitoring
    • Prerequisites
    • Set Up the Grafana Application
  • Create a Dashboard for NCache Monitoring
    • Use the NCache Plugin to Create a Dashboard
    • Create Custom Dashboard
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top