Collecting and exporting metrics
How do I add a VM RAM metric?
Yandex Compute Cloud cannot measure the guest operating system vRAM consumption. In fact, the service sees the VM memory consumption as a constant: the amount of RAM allocated to it at start up.
You can configure the collection of custom metrics via the API or using a system metrics delivery agent for Linux operating systems. The latter allows you to collect statistics for CPU, RAM, network, and disk usage.
How do I add a VM disk space metric?
There is no such metric because Monitoring cannot access guest operating systems.
You can configure the collection of custom metrics via the API or using a system metrics delivery agent. The latter allows you to collect statistics for CPU, RAM, network, and disk usage.
How do I collect custom metrics from my app?
Yandex Unified Agent supports metric collection in the Prometheus format and metric conversion to the Monitoring format. That means you can use Unified Agent to collect metrics from any application supporting Prometheus format.
Use a client library
You can see examples in the following sections of our guides:
- Delivering custom application metrics
- Delivering metrics from HAProxy and other third-party applications
Can I deliver Yandex Managed Service for Kubernetes cluster metrics to Monitoring?
Yes, you can by using Metrics Provider. To install it, follow this guide.
How do I deliver third-party app metrics to Monitoring?
To deliver metrics from third-party applications to Monitoring, use Unified Agent with the metrics_pull
input configured. Unified Agent periodically polls the third-party application directly (if the application supports metrics in the Prometheus format) or polls a special export application that manages the integration with Prometheus.
You can find an example of how to configure HAProxy metrics delivery in Delivering metrics from HAProxy and other third-party applications.
How do I deliver metrics from hosts outside Yandex Cloud?
Configure service account authorized keys to deliver metrics to Monitoring through Unified Agent.
You can also use this method to send metrics from Yandex Cloud VMs without a linked service account.
How can I see a list of metrics?
To do this, open Metrics and select the service you need.
To get a complete list of metrics for a specific cloud and folder, follow this API request guide.
Can I export metrics in Prometheus format?
To export metrics in Prometheus format, use the prometheusMetrics method.
See a metric export setup example here.