YugabyteDB monitoring

Monitor YugabyteDB health, track resource utilization, and keep your distributed SQL clusters highly available and reliable at scale.

Start 30-day free trial Try now, sign up in 30 seconds

Ensure high availability for distributed SQL workloads

YugabyteDB is an open-source, distributed SQL database designed for cloud-native applications that demand scale, resilience, and global data distribution. Built with PostgreSQL compatibility and a NoSQL-inspired architecture, it delivers high performance, strong consistency, and fault tolerance across clusters. Monitoring YugabyteDB is key to ensuring availability, efficient resource use, and early issue detection. Tracking metrics like connections, sessions, transactions, cache hit ratios, and disk usage helps maintain smooth operations, prevent outages, and keep mission-critical applications running reliably.

Monitor the health and performance of your YugabyteDB clusters

metrics icon

Track cluster health and usage with metrics like version, active sessions, total connections, and database size to maintain visibility and manage growth.

Monitor database performance icon

Monitor database performance by analyzing transactions (committed or rolled back), active connections, locks, cache hit ratio, query times, total queries, and throughput to optimize efficiency and prevent slowdowns.

report icon

Run and monitor custom SQL queries to track business-specific KPIs, performance patterns, or application-driven metrics unique to your workloads.

Set alerts

Set alerts for spikes in disk usage, query times, or connection counts, and visualize all YugabyteDB metrics on unified dashboards for proactive performance management.

Get started with Site24x7's YugabyteDB monitoring

  • Supported Platforms:

Performance Metrics

Metric Description
YugabyteDB_Version The version of YugabyteDB currently running
Active_Sessions The number of active sessions currently connected to the database
Total_Connection The total number of connections to the database
Database_Details Details about individual databases, including name, size, active connections, transaction stats, and cache hit ratio
Database_Size_in_bytes The size of the specific database in bytes
Active_Connections The number of active connections for a particular database
Transactions_Committed The number of transactions committed for a particular database
Transactions_Rolledback The number of transactions rolled back for a particular database
Cache_Hit_Ratio The cache hit ratio for a particular database, indicating cache efficiency
Database_Locks The number of database locks currently in place
Avg_Query_Time The average query execution time in seconds
Total_Disk_Usage Total disk usage by the database in bytes
Throughput The number of transactions processed per second
Total_Queries The total number of queries executed across the databases

Setup

Prerequisites

  • Download and install the Site24x7 server monitoring agent (Linux | Windows) on the server where you plan to run the plugin.
  • Ensure you have Python 3 or a higher version running in your server.

Plugin installation

  • Create a folder named yugabyte
  • Download the yugabyte.py and the yugabyte.cfg files from our GitHub repository and place them in the yugabyte folder.
    wget https://raw.githubusercontent.com/site24x7/plugins/master/yugabyte/yugabyte.py && sed -i "1s|^.*|#! $(which python3)|" yugabyte.py
    wget https://raw.githubusercontent.com/site24x7/plugins/master/yugabyte/yugabyte.cfg
  • To check if the plugin is working, execute the command below with appropriate arguments, and check for a valid JSON output with applicable metrics and their corresponding values.
    python3 yugabyte.py --host localhost --port 8080 --username yugabyte --password yugabyte
  • Add the applicable configurations in the yugabyte.cfg file.
    [yugabyte-server]
    host = "localhost"
    port = "5433"
    username = "yugabyte"
    password = "yugabyte"
  • Follow the steps in this article to learn how to run the Python script on Windows Server. You don't need to do this for Linux.
  • Move the yugabyte folder to the Site24x7 server monitoring plugins directory:
    For Linux: /opt/site24x7/monagent/plugins/
    For Windows: C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins\

The agent will automatically execute the plugin within five minutes and display performance data in Site24x7.

To view the plugin monitor and associated performance charts:

  • Log in to Site24x7.
  • Navigate to Plugins and click the required monitor.

Prerequisites

  • Download and install the Site24x7 server monitoring agent (Linux | Windows) on the server where you plan to run the plugin.
  • Ensure you have Python 3 or a higher version running in your server.

Plugin installation

  • Create a folder named yugabyte_custom_query.
  • Download the yugabyte_customquery.py, yugabyte_customquery.cfg, and query.sql files from our GitHub repository and place them in the yugabyte_custom_query folder.
    wget https://raw.githubusercontent.com/site24x7/plugins/master/yugabyte_custom_query/yugabyte_custom_query.py && sed -i "1s|^.*|#! $(which python3)|" yugabyte_custom_query.py
    wget https://raw.githubusercontent.com/site24x7/plugins/master/yugabyte_custom_query/yugabyte_custom_query.cfg
    wget https://raw.githubusercontent.com/site24x7/plugins/master/yugabyte_custom_query/query.sql
  • Enter your custom query in the query.sql file.
  • To check if the plugin is working, execute the command below with appropriate arguments, and check for a valid JSON output with applicable metrics and their corresponding values.
    python3 yugabyte_custom_query.py --host "localhost" --port "5433" --username "yugabyte" --password "yugabyte" --db 'demo'
  • Add the applicable configurations in the yugabyte_custom_query.cfg file.
    [Demo]
    host = "localhost" port = "5433"
    username = "yugabyte"
    password = "yugabyte"
    db = "demo"
  • Follow the steps in this article to learn how to run the Python script on Windows Server. You don't need to do this for Linux.
  • Move the yugabyte_custom_query folder to the Site24x7 server monitoring plugins directory:
    For Linux: /opt/site24x7/monagent/plugins/
    For Windows: C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins\

The agent will automatically execute the plugin within five minutes and display the performance data in Site24x7.

After the first execution, two files will be created:

log_pattern.txt: Contains the query output log pattern.

query_output*.txt: Stores the query output data.

Follow the steps below to create a custom log type:

  • Use logpattern.txt and queryoutput*.txt to define a custom log type:
    Follow this guide to set up a custom log type.
  • Configure a log profile for the new log type:
    Refer to this guide to create a log profile.
  • Map the log file paths for log tracking:
    Linux: /opt/site24x7/monagent/plugins/yugabytecustomquery/query_output*
    Windows: C:\Program Files

(x86)\Site24x7\WinAgent\monitoring\Plugins\yugabytecustomquery\query_output*

Once the custom app logs are set up, you will be able to continuously monitor your query outputs in Site24x7.

To view the plugin monitor and associated performance charts:

  • Log in to Site24x7.
  • Navigate to Plugins and click the required monitor.

Over 13,000 customers trust Site24x7

Brand logos of our various customers

Discover how you can leverage plugin integrations to get visibility into the blind spots of your IT ecosystem.

Download now

Check out our 100 plus plugin integrations or build your own

Choose from our list of more than 100 ready-to-use plugins and monitor your full stack of applications across web servers, databases, load balancers, and more.

See all plugin integrations
Start 30-day free trial Try now, sign up in 30 seconds