Additional Process Information for Cloud Compute Instances and External Hosts
When analyzing hosts resources Ops Insights can collect additional information for processes I/O and container details for processes running in containers.
Note
Additional process I/O and container information collected is only available for Linux hosts.
Additional process I/O and container information collected is only available for Linux hosts.
The following is a list of additional metrics Ops Insights can collect when Privileged mode is enabled:
Metric Name | Description |
---|---|
Container Name | Given name to the container or default name assigned by the container engine |
Container Image Name | Image name |
Container Image Tag | Image tag (version) |
Container Image Digest | Image digest |
Container Port | Exposed ports by the container |
Process Read Bytes | Process read bytes |
Process Written Bytes | Process Written bytes |
Process IOPS | Process total I/O operations |
In order for Ops Insights to obtain these additional metrics
sudo
access must be granted to run specific commands on a limited context. The script required to grant sudo
access is included with the Ops Insights Host plugin. To enable both metrics and sudo
run one of the following commands:
- For OCI Computes with Oracle Cloud Agent and Management Agent Plugin enabled:
printf '%s\n' /var/lib/oracle-cloud-agent/plugins/oci-managementagent/polaris/agent_inst/config/destinations/OCI/services/opsiHost/* | sed 's/^.*opsiHost\/\([0-9]*\)/\1/' | sort -n | tail -n 1 | bash /var/lib/oracle-cloud-agent/plugins/oci-managementagent/polaris/agent_inst/config/destinations/OCI/services/opsiHost/$(cat)/scripts/linux/privilegedCollectionsInstall.sh
- For external hosts with Management Agent installed:
printf '%s\n' /opt/oracle/mgmt_agent/agent_inst/config/destinations/OCI/services/opsiHost/* | sed 's/^.*opsiHost\/\([0-9]*\)/\1/' | sort -n | tail -n 1 | bash /opt/oracle/mgmt_agent/agent_inst/config/destinations/OCI/services/opsiHost/$(cat)/scripts/linux/privilegedCollectionsInstall.sh
Note
The first time the script is run it will also create the required script used by Ops Insights into:
The first time the script is run it will also create the required script used by Ops Insights into:
/opt/oracle/Opsi
. If you need to update to a new privileged collection version or reinstall, delete the script located within this directory.
Adding the Privilege Script to a OCI Node Pool Initialization Script
It is common for OCI Compute Instances to have an Instance pool (or node pool in the case of OKE Service) provisioning new instances. It may be difficult or burdensome to run the Ops Insights privilege collection script for each newly provisioned instance. To prevent issues and running the script each time, add the Ops Insights privileged script to the existing node pool initialization script following these steps:
- Go to Node Pool Advanced Options, and in the Initialization script section click on the Download current script link
Figure 4-2 Download current script
- Add the Ops Insights script shown in the script section above, after the content included in the current script
- Attach the new script by selecting the file or copy the contents directly
- Save changes if you are editing an existing pool or create the new pool