Skip to content

Commit 827af53

Browse files
committed
Enable OCI monitoring agent for the runner VMs
Signed-off-by: Koray Oksay <koray.oksay@gmail.com>
1 parent bc9dbbe commit 827af53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/cloudrunners/oci/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ func run(cmd *cobra.Command, argv []string) error {
102102
BootVolumeSizeInGBs: common.Int64(600),
103103
BootVolumeVpusPerGB: common.Int64(120),
104104
},
105+
AgentConfig: &core.LaunchInstanceAgentConfigDetails{PluginsConfig: []core.InstanceAgentPluginConfigDetails{{DesiredState: core.InstanceAgentPluginConfigDetailsDesiredStateEnabled,
106+
Name: common.String("Compute Instance Monitoring")}},
107+
AreAllPluginsDisabled: common.Bool(false),
108+
IsMonitoringDisabled: common.Bool(false),
109+
},
105110
})
106111
if err != nil {
107112
return fmt.Errorf("failed to create machine: %w", err)
@@ -156,6 +161,7 @@ func run(cmd *cobra.Command, argv []string) error {
156161
"sudo setfacl -m u:ubuntu:rw /var/run/docker.sock",
157162
"sudo sysctl fs.inotify.max_user_instances=1280",
158163
"sudo sysctl fs.inotify.max_user_watches=655360",
164+
"sudo snap install oracle-cloud-agent --classic",
159165
"export PATH=$PATH:/home/ubuntu/.local/bin && export HOME=/home/ubuntu && export NVM_DIR=/home/ubuntu/.nvm && bash -x /home/ubuntu/run.sh --jitconfig \"${ACTIONS_RUNNER_INPUT_JITCONFIG}\"",
160166
}
161167

0 commit comments

Comments
 (0)