Google Compute Engine - Google Cloud Ops Agent Metrics Agent Failed to start

nz flag

I checked the log using journalctl -u google-cloud-ops-agent-opentelemetry-collector.service and found below erorr

cannot configure Google Cloud metric exporter: stack driver: no project found with application default credentials

I also have set the credential using gcloud config set account [email protected] with role Editor.

it seems it cannot read the credentials or I'm missing other steps ?

John Hanley avatar
cn flag
For Google Cloud Compute Engine a service account is assigned to the instance. The credentials and project are read from the Compute Engine metadata server. The error means you have something configured wrong. Review the Compute Engine `Access Scopes` and the attached service account. Documentation for both items: The service account requires the correct IAM role:
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.