KeyDB — Prerequisites & Deployment
Prerequisites and deployment steps for out-of-the-box KeyDB monitoring.
This article covers the prerequisites and deployment steps to enable out-of-the-box (OOB) monitoring of KeyDB in HEAL. KeyDB is monitored in the same way as Redis: HEAL producer scripts run through a Component Agent and push the collected metrics to the HEAL Ingestion API layer.
Prerequisites#
Complete the following before adding the KeyDB component in the HEAL Control Center:
- HEAL 2.3.2_Upgrade and above — KeyDB OOB component support can be migrated on top of this baseline.
- Network reachability from the Component Agent host to the KeyDB instance on its monitor port.
- KeyDB authentication credentials (username and password) if authentication is enabled on the instance.
- For SSL-enabled monitoring: the CA certificate, the client certificate, and the client key files available on the Component Agent host, with read permissions for the user that runs the Component Agent.
- A Component Agent that can be deployed on the KeyDB server (or on a host with network access to it).
Deployment#
The deployment steps are as follows:
-
Copy the following database migration scripts to the database migration directory:
20260720113842-add-key-db-component.up.sql20260720113842-add-key-db-component.down.sql
Destination:
/<Install_Path>/Appsone_Service/migrate-db/appsone -
Run the following command to apply the database migration:
env 'MIGRATION-DIR=./appsone' SUBNAME=//<percona_ip>:3307/appsone username=<username> password=<password> java -jar migrate-db.jar --migrate -
Once the database migration completes successfully, log in to the HEAL Control Center.
-
Create a new KeyDB component instance from the SDM (Service Definition Model) page.
Create a KeyDB instance#
Provide the required attributes for the KeyDB instance in the SDM form. The Control Center shows the fields relevant to the selected SSL mode.
Note: To monitor all required KeyDB ports, create a separate component instance for each port, similar to Redis monitoring.
-
Create a Component Agent and map it to the corresponding KeyDB component instance.
- Deploy the Component Agent on the KeyDB server.
- Copy the following scripts to the Component Agent producers directory:
Fetch_KeyDB_Host_Availability.shFetch_KeyDB_Cluster_Availability.shFetch_KeyDB_Core_Non_Group.sh
- Update the required ownership and permissions for the scripts.
- Start the Component Agent and verify that KeyDB metrics are being collected successfully.
Note: For SSL-enabled KeyDB monitoring, ensure that the certificate files (CACerts, KeyDB Cert, and KeyDB Key) have appropriate read permissions. The Component Agent must run as the same user that has access to these certificate files.
See also: KeyDB (what HEAL monitors) · KeyDB KPIs · Viewing KeyDB KPIs