Hi Team,
I have created an instance with custom service account attaching the custom role with the permissions as below and my vm i having the latest ops agent of 2.9.1 in windows one. But it's showing agent is not detected in the monitoring console. Please suggest me on this.
Hi,
I believe your custom service account is missing the following roles:
- Logs Writer (roles/logging.logWriter)
- Monitoring Metric Writer (roles/monitoring.metricWriter)
Let me know if this worked.
Hi,
Service account i having the valid roles and permissions mapped. Pelase find the screen shot.
I have tried to run the health check script as well. Got the below details.
Please find the output of the health check script.
"Script version 0.7 run at 03/13/2024 12:54:21"
===============================================================================
METADATA
===============================================================================
zone: us-central1-a
project_name: 8888888
project_id: 888888888
instance_name: windows
instance_id: 6880693067676701372
image: projects/windows-cloud/global/images/windows-server-2022-dc-v20240214
Trying to connect to logging.googleapis.com ...
Connected OK
Trying to connect to monitoring.googleapis.com ...
Connected OK
Using service account compute-admin@neural-sunup-416408.iam.gserviceaccount.com.
It looks like it is authorized using service account attached to resource.
===============================================================================
OPS AGENT
===============================================================================
===== VERSION =====
Installed packages matching "google-cloud-ops-agent": google-cloud-ops-agent.x86_64 2.9.1@1
===== STATUS =====
@{Name=google-cloud-ops-agent; DisplayName=Google Cloud Ops Agent; StartType=Automatic; Status=Running}
===== PORTS STATUS =====
Metrics Agent self metrics port '20201' usage Logging Agent self metrics port '20202' usage
> TCP 0.0.0.0:20202 0.0.0.0:0 LISTENING
[fluent-bit.exe]
> TCP 127.0.0.1:20202 127.0.0.1:53413 TIME_WAIT
> TCP 127.0.0.1:20202 127.0.0.1:53445 TIME_WAIT
TCP 127.0.0.1:51930 127.0.0.1:51931 ESTABLISHED
Please let me know if any additional api's i need to enable.
so far the below api's are enabled for this job.
this issue has been resolved. My service account is having full permissions but missed to enable the stack driver api the core component for the OP's agent.
Thank you @agi83 , for checking on this.
I'm glad you found the solution 🙂