VM Monitoring
Connect virtual machine monitoring
Quickstart
VM Monitoring using Prometheus + Otel Collector
RevDeBug collects metrics data from virtual machines (VMs) using Prometheus node-exporter. The collected data is then transferred to an OpenTelemetry Collector, which sends it to an OpenTelemetry receiver and eventually to a Meter System for analysis. To learn more about node exporter click here.
In this system, each VM is defined as a service in OpenTelemetry Protocol (OAP) and is identified by the prefix "vm::". This allows for easier tracking and management of metrics data for each individual VM.
To use VM monitoring, set the vm:: prefix for the service.
In order to hook up a virtual machine to monitoring, you need to install something on it that will catch metrics from it (by default, everything is geared for node exporter, but there is no obstacle to it being another system catching data). For node exporter enabled from docker, the configuration is:
Remember to open port 9100.
The next step is to enter the command:
The next step is to configure and run an additional docker container. Go to where you have installed docker compose revdebug to data/otel-collector/otel-collector-config-template.yaml
You need to change the name from otel-collector-config-template.yaml to otel-collector-config.yaml if you want to monitor your virtual machines.
In the static_configs section, set the address of the virtual machines
After the configuration (specifying the VM from which you will download metrics and the OAP to which these metrics will be sent) it is left to configure the OAP.
The final step is to run OAP with the environment variables set:
Start the revdebug server using the command:
In SW_OTEL_RECEIVER_ENABLED_OC_RULES
you can write out other rules after the comma for example: SW_OTEL_RECEIVER_ENABLED_OC_RULES:vm,oap,something
VM Monitoring using Zabbix
To monitor a virtual masthead with Zabbix, all you need to do is enable the Zabbix agent in the container (on the monitored vm).
Variables to set: ZBX_HOSTNAME
- this name will be visible in OAP, ZBX_SERVER_HOST
- host address without protocol and without port.
From the OAP side, open port 10051
and make sure that the variable SW_RECEIVER_ZABBIX:default
is set.
Supported metrics in our VM monitoring
Tab with monitoring VMs in APM
If you want to enable the virtual machine monitoring option, please contact sales@revdebug.com.
Last updated