Monitoring a Redis cluster, nodes, and databases
In Redis Managed Databases, you can monitor the cluster state.
To assess the general state of the cluster, check its status.
For a more detailed analysis, you can:
- view the status of cluster nodes — as charts in the control panel;
- view the status of databases — as charts in the control panel;
- export cluster node and database metrics in Prometheus format.
The time in the control panel matches the time set on your device and does not depend on the region where the cluster is hosted.
For example, you have created a cluster in Tashkent, in the uz-1 pool. On the device from which you logged into the control panel, the Moscow time zone is set. The time on the metrics charts will be displayed in the Moscow time zone.
View cluster status
-
In the control panel top menu, click Products and select Managed Databases.
-
Open the Active tab.
-
In the cluster row, check the status.
View cluster node status
- In the control panel top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Monitoring tab.
- In the Cluster monitoring block, click Cluster nodes.
- Select the nodes for which you want to view metrics.
- View the available cluster node metrics.
Cluster node metrics in the control panel
View database status
- In the control panel top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Monitoring tab.
- In the Cluster monitoring block, click Databases.
- Select the nodes for which you want to view metrics.
- View the available database metrics.
Database metrics in the control panel
Export metrics in Prometheus format
1. Get a token
The token provides access to metrics for all clusters of a project in one pool.
-
In the control panel top menu, click Products and select Managed Databases.
-
Open the Active tab.
-
Open the cluster page → Monitoring tab.
-
In the Prometheus tokens block, click Create token. The token will be generated automatically.
-
Copy the token. To do this, click in the token row.
2. Get metrics in Prometheus format
Historical information for clusters is unavailable; metrics are requested in real time only. A list of all supported metrics in Managed Databases and their descriptions can be viewed in the Metrics in Prometheus format table.
Configuration file
CLI
-
Add the following to the Prometheus configuration file:
scrape_configs:- job_name: get-metrics-from-dbaasscrape_interval: 1mstatic_configs:- targets:- '<domain>'scheme: httpsauthorization:type: Bearercredentials: <token>Specify:
<domain>— a Managed Databases API domain. This is the URL part for accessing the API withouthttps://and/v1, for exampleru-3.dbaas.selcloud.ru. The URL depends on the region and pool, and can be found in the list of URLs;<token>— the token you copied when obtaining the token in step 5.
-
Open the page in your browser where the metrics in Prometheus format will be available:
http://<ip_address>:9090/targetsSpecify
<ip_address>— the IP address where Prometheus is installed. -
Configure monitoring and alerts for database clusters yourself.
Metrics in Prometheus format
Metrics in Prometheus format are provided for all clusters. A specific cluster can be found by the database cluster ID in the ds_id label.
Infrastructure-level metrics
Application-level metrics