Open mpsq opened 1 year ago
We experience a similar issue.
We are trying to get CloudSQL postgres DB query analysis in Datadog and wondering what's the correct config for Datadog agent running docker in GCP CloudRun and which env vars should be set beside DD_SITE
and DD_API_KEY
I was having the same error, in my case these annotations were missing:
metadata:
annotations:
run.googleapis.com/launch-stage: BETA
spec:
template:
metadata:
annotations:
run.googleapis.com/execution-environment: gen2
@enischiguti
Very cool! Deploying CloudRun with Gen2 indeed made the deployment successful thank you!
Though I'm still combating some network issues.
Can you please share a bit more details about your configuration? Which env vars did you set beside DD_API_KEY
?
@LiuVII What is the error you're experiencing? Besides DD_API_KEY
and DD_SITE
the other one I needed was DD_HOSTNAME
.
@LiuVII What is the error you're experiencing? Besides
DD_API_KEY
andDD_SITE
the other one I needed wasDD_HOSTNAME
.
I don't see any specific error coming from the agent just don't see the expected metrics in Datadog dashboard.
Basically, we're trying to use CloudRun service to host Database Monitoring Agent https://docs.datadoghq.com/database_monitoring/setup_postgres/gcsql/?tab=docker#install-the-agent to get query insights in Datadog
Well I don't have this specific use-case. Only other thing I can think of right now is enabling debug logs to find more hints.
Agent Environment Agent: 7.45.1
Describe what happened: I am attempting to run the agent on Cloud Run to forward traces from other containers, I use the following Dockerfile:
The container, once on Cloud Run, crashes with:
Coming from: https://github.com/DataDog/datadog-agent/blob/fbc3a566b5ca593435126c8c757780d62f1dc5ba/comp/process/hostinfo/hostinfo.go#L32C1-L32C1
Describe what you expected: The Dockerfile above works fine / as expected when running locally on a Linux machine. I would expect the container to run without issues on GCP Cloud Run.
Steps to reproduce the issue: You can use this Cloud Build file:
Save this to a file named
dd-agent.yaml
. And then, with thegcloud
cli installed and configured:Additional environment details (Operating System, Cloud provider, etc): GCP Cloud Run