Skip to main content

Update Enhanced Monitoring for a virtual machine

PATCH 

/core/virtual-machines/:vm_id/enhanced-metrics

Turn Enhanced Monitoring on or off for an existing virtual machine. Enabling records your intent and returns a one-line install_command; run that command inside the virtual machine to install the monitoring agent, which is what actually starts metrics collection. Disabling stops collection and omits install_command from the response, and leaves the agent installed so it resumes if you enable it again. Enhanced Monitoring requires a Linux image running systemd. For what the agent collects and how to read the metrics, see Enhanced Monitoring.

Request

Responses

Enhanced metrics updated.