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:
The 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. 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.
Viewing 1C server cluster metrics
- In the Control Panel, in the top menu, click Products and select Cloud for 1C.
- Go to 1C Server Clusters.
- Open the cluster page → Monitoring tab.
- Optional: in the Cluster monitoring block, filter metrics by date.
- View available cluster metrics.
Cluster metrics in the control panel
Export metrics in Prometheus format
Historical information for clusters is unavailable — metrics are collected once a minute. A list of all metrics supported in 1C server clusters and their description can be found in the table Metrics in Prometheus format.
1. Get a token
The token provides access to metrics of all clusters in the project and databases in the same pool.
-
In the Control panel, in 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 Prometheus tokens block, click Create. The token will be generated automatically.
-
In the token line, click and save it.
2. Get metrics in Prometheus format
Configuration file
CLI
-
Add the following to the Prometheus configuration file:
scrape_configs:- job_name: get-metrics-from-1cscrape_interval: 1mstatic_configs:- targets:- '<domain>'scheme: httpsauthorization:type: Bearercredentials: <token>Specify:
<domain>— domain for accessing the API. This is the part of the URL withouthttps://, for examplemetrics.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 Prometheus tokens block, click next to the URL;<token>— token that you saved in step 5 when getting the token in stage 1.
-
Open the page in your browser where metrics in Prometheus format will be available:
http://<ip_address>:9090/targetsSpecify
<ip_address>— the IP address of the server where Prometheus is installed. -
Set up monitoring and alerts for the 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
You can use the preconfigured dashboard template in Grafana.