Monitoring an 1C server cluster
In a ready-to-use 1C cloud, you can monitor the cluster status.
For a more detailed analysis, some metrics can be viewed as charts in the control panel:
A full set of available metrics can be exported 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 Novosibirsk, in the ru-8 pool. The device you are using to access the control panel is set to the Moscow time zone. The time on the metrics charts will be displayed in the Moscow time zone.
Viewing 1C server cluster metrics
- In the control panel, on the top menu, click Products and select 1C Managed Cloud.
- Go to the 1C Server Clusters section.
- Open the cluster page → Monitoring tab.
- Optional: in the Cluster monitoring block, filter metrics by date.
- View the available cluster metrics.
Cluster metrics in the control panel
Exporting metrics in Prometheus format
Historical information for clusters is not available — metrics are collected once a minute. A list of all metrics supported in 1C server clusters and their description can be viewed in the Metrics in Prometheus format table.
1. Get a token
The token provides access to metrics for all clusters in a project and databases in the same pool.
-
In the control panel, on the top menu, click Products and select 1C Managed Cloud.
-
Go to the 1C Server Clusters section.
-
Open the cluster page → Monitoring tab.
-
In the Tokens for Prometheus block, click Generate. A token will be generated automatically.
-
In the token string, click and save it.
2. Get metrics in Prometheus format
Configuration file
CLI
-
Add to your Prometheus configuration file:
scrape_configs:- job_name: get-metrics-from-1cscrape_interval: 1mstatic_configs:- targets:- '<domain>'scheme: httpsauthorization:type: Bearercredentials: <token>Specify:
<domain>— domain to access the API. This is the URL part withouthttps://, e.g.,metrics.ru-9.1c.selcloud.ru. You can copy it in the control panel: in the top menu click Products → 1C Managed Cloud → 1C Server Clusters → cluster page → Monitoring tab → in the Tokens for Prometheus block click 1 next to the URL;<token>— the token you saved in step 5 when getting a token in stage 1.
-
Open the page containing metrics in Prometheus format in your browser:
http://<ip_address>:9090/targetsSpecify
<ip_address>— the IP address of the server where Prometheus is installed. -
Set up monitoring and alerts for your 1C server cluster yourself.
Metrics in Prometheus format
Metrics in Prometheus format are provided for all project clusters. A specific cluster can be found by the 1C cluster ID in the cluster_id label.
Server clusters
Apache servers
Databases
Infobases