Control: Compute instances should have monitoring enabled
The compute instance metrics provide data about the activity level and throughput of the instance. These metrics are required to use features such as autoscaling, metrics, alarms, and notifications with compute instances.
Run the control in your terminal:
steampipe check oci_thrifty.control.compute_instance_monitoring_enabled
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share oci_thrifty.control.compute_instance_monitoring_enabled
Plugins & Tables
with instance_monitoring as (selectdistinct display_name,configfromoci_core_instance,jsonb_array_elements(agent_config -> 'pluginsConfig') as configwhereconfig ->> 'name' = 'Compute Instance Monitoring'and config ->> 'desiredState' = 'ENABLED')selectv.id as resource,casewhen l.display_name is null then 'alarm'else 'ok'end as status,casewhen l.display_name is null then v.title || ' logging disabled.'else v.title || ' logging enabled.'end as reason,coalesce(c.name, 'root') as compartment,v.regionfromoci_core_instance as vleft join instance_monitoring as l on v.display_name = l.display_nameleft join oci_identity_compartment as c on c.id = v.compartment_idwherev.lifecycle_state <> 'TERMINATED';