Install a Management Agent
You need to install a Management Agent to be able to register agents with Oracle Cloud Infrastructure (OCI).
Install and set up a Management Agent on the same VM or on a VM with access to the Node Exporter's endpoint. This Management Agent will be configured to scrape metrics from the running Prometheus Node Exporter.
- Install a Management Agent in an OCI instance.
If you have an OCI compute instance, you need to follow the instructions to enable the Management Agent plugin on OCI compute instances. For information about the prerequisites and the installation process, see Deploy Management Agents on Compute Instances.
- Install a Management Agent in a non-OCI instance.
If you have a standalone VM, you need to follow the instructions to install a Management Agent in a VM. For information about the prerequisites and the installation process, see Install Management Agents.
Additional Prerequisite: Create a dynamic group.
A dynamic group creation is only required if using Management
Agent service to collect metrics in Prometheus format. For example,
create a Management Agent dynamic group named
Management-Agent-Dynamic-Group
with the
following: ALL {resource.type='managementagent',
resource.compartment.id='<AGENT_COMPARTMENT_OCID>'}
In this example, the
<AGENT_COMPARTMENT_OCID>
is the
compartment OCID of the Management Agent. For more information about
dynamic groups, see Managing Dynamic
Groups.