Monitoring of Redis cluster, nodes and databases
In Redis cloud databases, you can monitor the health of the cluster.
To assess the overall health of the cluster ,look at the status of the cluster.
For a more detailed analysis, you can:
- view the status of the cluster nodes — in the form of graphs in the control panel;
- view the status of databases — in the form of graphs in the control panel;
- export cluster and database node metrics in Prometheus format.
The time in the control panel corresponds to the time set on your device and is independent of the region where the cluster is hosted.
For example, you have created a cluster in Tashkent, in pool uz-1. Tashkent is in the UTC+5 time zone. On the device from which you logged into the control panel, the time zone is set to UTC+3. The time on the metrics charts will be displayed in UTC+3.
View cluster status
-
In the Dashboard, on the top menu, click Products and select Cloud Databases.
-
Open the Active tab.
-
In the cluster row, look at the status.
View the status of the node cluster
- In the Dashboard, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Monitoring tab.
- In the Cluster Monitoring block, click Cluster Nodes.
- Select the nodes whose metrics you want to view.
- Look at the available metrics of the node cluster.
Cluster node metrics in the control panel
View the status of the databases
- In the Dashboard, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Monitoring tab.
- In the Cluster Monitoring block, click Databases.
- Select the nodes whose metrics you want to view.
- Take a look at the available database metrics.
Database metrics in the dashboard
Export metrics in Prometheus format
1. Get a token
The token gives access to the metrics of all project clusters in a single pool.
-
In the Dashboard, on the top menu, click Products and select Cloud Databases.
-
Open the Active tab.
-
Open the cluster page → Monitoring tab.
-
In the Tokens for Prometheus block, click Create token. The token will be generated automatically.
-
Copy the token. To do this, clickin the token line.
2. Get metrics in Prometheus format
Historical information for clusters is not available — metrics are requested only in real time. The list of all metrics that are supported in cloud databases and their description can be viewed in the Metrics table in Prometheus format.
Configuration file
CLI
-
Add to the Prometheus configuration file:
scrape_configs:
- job_name: get-metrics-from-dbaas
scrape_interval: 1m
static_configs:
- targets:
- '<domain>'
scheme: https
authorization:
type: Bearer
credentials: <token>Specify:
<domain>— domain of the Managed Databases API. This is the part of the URL to access the API withouthttps://and/v1for exampleuz-1.dbaas.api.servercore.com. URL depends on region and pool. you can look in URL list;<token>— the token you copied when receiving the token in step 5.
-
Open a page in your browser where Prometheus-formatted metrics will be available:
http://<ip_address>:9090/targetsSpecify
<ip_address>— the IP address where Prometheus is installed. -
Independently configure monitoring and alerts for database clusters.
-
Open the CLI.
-
To get the metrics, submit a request:
curl -L "https://<domain>/metrics" -H "Authorization: Bearer <token>"Specify:
<domain>— domain of the Managed Databases API. This is the part of the URL to access the API withouthttps://and/v1for exampleuz-1.dbaas.api.servercore.com. URL depends on region and pool. you can look in URL list;<token>— the token you copied when receiving the token in step 5.
Available metrics in Prometheus format will appear in the response.
-
Independently configure monitoring and alerts for database clusters.
Metrics in Prometheus format
Metrics in Prometheus format are provided for all clusters. A specific cluster can be found by the database cluster identifier in the ds_id label.
Infrastructure level metrics
Application level metrics