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 created a cluster in Novosibirsk, in the ru-8 pool. The device from which you accessed 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
Export metrics in Prometheus format
Historical information for clusters is not available — metrics are collected once per minute. A list of all metrics that are supported in 1C server clusters, and their descriptions, can be viewed in the Metrics in Prometheus format table.
1. Get a token
The token provides access to the metrics of all clusters in a project and databases in one pool.
-
In the control panel, on the top menu, click Products and select Managed 1C Cloud.
-
Go to the 1C Server Clusters section.
-
Open the cluster page → Monitoring tab.
-
In the Tokens for Prometheus block, click Create. The token will be generated automatically.
-
In the token row, 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>— the domain for API requests. This is the URL part withouthttps://, for example,metrics.ru-9.1c.selcloud.ru. It can be copied in the control panel: in the top menu, click Products → Managed 1C Cloud → 1C Server Clusters → cluster page → Monitoring tab → in the Tokens for Prometheus block, click next to the URL;<token>— the token you saved in step 5 when getting the token in step 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 its 1C cluster ID in the cluster_id label.
Server clusters
Apache servers
Databases
Infobases
You can use a preconfigured dashboard template in Grafana.