Monitoring of cluster, nodes and PostgreSQL TimescaleDB databases
In cloud databases PostgreSQL TimescaleDB you can monitor the status of the cluster in the control panel:
- look up information about using the cluster node and about database load in the form of graphs in the control panel;
- watch cluster status;
- get disk fill notifications.
Cluster and database node metrics can also be export in Prometheus format.
View the status of the node cluster
- В control panels go to Cloud platform → Databases.
- Open the cluster page → tab Monitoring.
- Click Monitoring of cluster servers.
- See what's available node cluster metrics.
Cluster node metrics in the control panel
View the status of the databases
- В control panels go to Cloud platform → Databases.
- Open the cluster page → tab Monitoring.
- Click Database monitoring.
- See what's available database metrics.
Database metrics in the dashboard
View cluster status
- В control panels go to Cloud platform → Databases.
- Look at the status in the cluster row → column Status.
Disk fullness notifications
If the cluster disk is 80% full, a notification will appear in the dashboard and will be sent to the email of the Account Owner and those users subscribed to the Notification category Services and services.
If the cluster disk is 95% or more full, the cluster will go into status DISK_FULL
and will be read-only. To make the cluster read-write, disk cleanup or scale the cluster and select a configuration with a larger disk size.
Export metrics in Prometheus format
You can export metrics in the format Prometheus and then independently configure monitoring and alerts for database clusters. Historical information for clusters is not available — metrics are requested only in real time.
To export metrics, you need to get a monitoring token. The token gives access to metrics of all clusters in one project pool.
-
В control panels go to Cloud platform → Databases.
-
Open the cluster page → tab Monitoring.
-
In the block Metrics in Prometheus format click Manage tokens.
-
Click Create.
-
Enter the name of the token.
-
Click Create. The token will be generated automatically.
-
Add to the Prometheus configuration file:
scrape_configs:
- job_name: get-metrics-from-dbaas
scrape_interval: 1m
static_configs:
- targets:
- '<pool>.dbaas.selcloud.ru'
scheme: https
authorization:
type: Bearer
credentials: <monitoring_token>Specify:
<pool>
— the pool in which the token operates, e.g.ru-3
. The address (URL) depends on the region and pool, you can look in the URL list;<monitoring_token>
— monitoring token value.
-
The source of the metrics will appear at
http://<localhost>:9090/targets
.
Specify <localhost>
— IP address where Prometheus is installed.
- See what's available Prometheus metrics.
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 label ds_id
.
Infrastructure level metrics
Application level metrics