惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
S
Securelist
小众软件
小众软件
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - Franky
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
O
OpenAI News
Cloudbric
Cloudbric
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
PCI Perspectives
PCI Perspectives
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
P
Palo Alto Networks Blog
M
MIT News - Artificial intelligence
V2EX - 技术
V2EX - 技术
阮一峰的网络日志
阮一峰的网络日志
Hacker News - Newest:
Hacker News - Newest: "LLM"
G
Google Developers Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Last Watchdog
The Last Watchdog
The Register - Security
The Register - Security
腾讯CDC
N
News and Events Feed by Topic
C
Check Point Blog
爱范儿
爱范儿
T
Tailwind CSS Blog
Webroot Blog
Webroot Blog
P
Proofpoint News Feed
S
Schneier on Security
MyScale Blog
MyScale Blog
N
News | PayPal Newsroom
Recorded Future
Recorded Future
T
Tenable Blog
I
InfoQ
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Microsoft Security Blog
Microsoft Security Blog
Simon Willison's Weblog
Simon Willison's Weblog
Engineering at Meta
Engineering at Meta

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis Monitor Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog’s platform in the AI age: The role of observability data Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
Monitor Cloud Run with Datadog
2025-01-13 · via Datadog | The Monitor blog
Jordan Obey

Jordan Obey

In part 1 of this series, we introduced the key Cloud Run metrics you should be monitoring to ensure that your serverless containerized applications are reliable and can maintain optimal performance. In part 2, we walked through a couple of Google Cloud’s built-in monitoring tools that you can use to view those key metrics and check on the health, status, and performance of your serverless containers. We also looked at different methods of accessing Cloud Run logs and distributed traces for a more complete view of your environment.

In this post, we’ll look at how you can use Datadog to collect and visualize Cloud Run metrics, traces, and logs. We’ll also look at how Datadog ties all of this telemetry together so that you can quickly pinpoint potential root causes of an issue and begin troubleshooting.

Enabling the Cloud Run integration and instrumenting your application

Datadog offers Cloud Run metric collection and visualization through its Google Cloud integration. To set up the Google Cloud integration, you need to use service account impersonation, which will enable Datadog to gain visibility into your serverless containerized workloads. You also need to make sure that this list of APIs are enabled and that none of the Google Cloud projects you plan to monitor are configured as scoping projects that pull in metrics from several other projects.

You can then follow these steps to create a service account, add a Datadog principal (allowing Datadog to access the Google Cloud resources you want to monitor), and complete setting up the integration.

In addition to our integration, you can get even deeper visibility with tracing, custom metrics, and direct log collection by instrumenting your Cloud Run application for Datadog Serverless monitoring. The default methodology for instrumenting a Cloud Run application is through a sidecar container, which will run alongside your Cloud Run Functions as it collects critical monitoring data.

You can also instrument a Cloud Run application through either a Dockerfile or buildpack. Instrumenting Cloud Run via a Dockerfile utilizes a lightweight serverless-init tool, which wraps your Cloud Run application and executes it as a subprocess, ensuring detailed metrics, traces, and logs are collected. The serverless-init tool starts a DogStatsD listener for performance metrics and a trace agent for distributed tracing, and captures logs by wrapping the stdout and stderr streams. This allows you to monitor the health and performance of your application in real time without altering your core code. For full instrumentation, make sure that datadog-init is set as the entrypoint or the first command in your Dockerfile, ensuring that all data is sent to Datadog for comprehensive monitoring of container instances.

For more guidance on instrumenting your Cloud Run application to enable tracing, custom metrics, and direct log collection, read our documentation.

Visualize Cloud Run metrics

Once the Cloud Run integration is enabled and set up, Datadog will automatically start collecting monitoring data from your serverless containers and populating an out-of-the-box dashboard with key metrics covered in part 1.

Google Cloud Run datadog dashboard

The Cloud Run dashboard includes an overview widget, enabling you to quickly gauge the state of your Cloud Run environment, including a count of serverless containers and requests, the rate of errors, and top lists of revisions using the most memory and CPU.

You can also use the dashboard’s region, project, service, and revision template variables to narrow your view down to monitoring data from the specific Cloud Run resources you want to investigate. For example, if you run an e-commerce site and want to focus on data from an ‘order-processing’ service, you can use the service template variable to investigate the health and performance of that specific service. By filtering your view down to a specific service, you can compare and contrast the resource usage and performance of different revisions of the same service to determine their health and efficiency.

Google Cloud Run container instances dashboard

Monitor container metrics

Datadog’s out-of-the-box Cloud Run dashboard enables you to view key container data such as billable instance time, the number of containers allocated to each service, a breakdown of idle containers, and resource usage across your containers—all in a single location.

Google Cloud Run request dashboard widget

In addition to giving an overview of your Cloud Run health and performance, this data can help you rightsize and configure your containerized serverless application. For example, you can monitor the billable instance time and resource usage of a service to determine whether your instances are underutilized, which may indicate over-provisioning of resources, or overutilized, suggesting a need for more resources or adjustment of concurrency settings. By analyzing these metrics, you can adjust the allocated CPU and memory to better match your application’s needs, ultimately optimizing performance while reducing costs.

Monitor request metrics

To effectively manage Cloud Run services, it’s crucial to visualize the request metrics such as the volume and latency of incoming requests. For instance, by monitoring the volume of incoming requests, you can then correlate that data with the resource usage of a service, ensuring that allocated resources are sufficient to handle the traffic without over-provisioning.

Google Cloud Run request dashboard widget

Additionally, visualizing latency trends can help you identify bottlenecks or performance issues, enabling timely adjustments to resource allocations or concurrency settings to maintain a responsive service.

Monitor job metrics

Datadog can also collect and visualize critical Cloud Run job metrics such as a count of task attempts and completions, as well as a count of running and completed executions. Keeping track of these metrics helps you monitor the health, performance, and reliability of your Cloud Run jobs. By analyzing task attempts and completions, you can identify trends in job success rates and detect potential failures early. For example, if there is a sudden drop in a job’s execution completion rate, that may be a signal of a failure in the execution environment or a recent change in the job’s logic. Identifying these patterns early allows you to investigate and resolve issues before they escalate, minimizing downtime and ensuring consistent performance of your Cloud Run job.

Detect Cloud Run issues early with automatic alerts

Our Cloud Run integration allows you to set up critical alerts that help maintain the health and efficiency of your services. For instance, you can set up alerts for a high rate of 5xx or 4xx errors, enabling you to quickly address issues that may be negatively impacting user experience. Additionally, alerting on the billable instance time of a service helps you monitor cost efficiency by notifying you when instances are running longer than expected. In the screenshot below, we see that the billable instance time of a service has suddenly spiked above a set threshold of 2 seconds, which will trigger an alert and kick start mitigation.

cloud-run-alert

Alerts on resource usage, such as CPU and memory, ensure that your service is operating within optimal parameters, allowing you to take action before performance issues arise.

Monitor Cloud Run application performance with Datadog Serverless monitoring and distributed tracing

In addition to the out-of-the-box dashboard, you can view Cloud Run monitoring data within the Datadog Serverless view, which surfaces key metrics alongside traces and logs so you can spot errors and quickly pivot between them all.

cloud-run-traces

After you’ve instrumented your Cloud Run service, Datadog will automatically visualize Cloud Run request traces as flame graphs so that you can quickly spot when and where errors occur. You’re also notified of cold starts, prompting you to optimize your service configuration by adjusting the minimum instance setting to keep a warm instance ready—reducing the likelihood of future cold starts. Additionally, you can analyze the flame graph to identify bottlenecks during the cold start and explore other optimizations such as caching, pre-warming containers, or optimizing initialization code to further minimize startup latency.

Read here to learn more about using Datadog Serverless APM to monitor Cloud Run.

Collect Cloud Run logs

If you are already using the Datadog Google Cloud integration, then Cloud Run logs will automatically be collected. Otherwise, if you have instrumented your serverless application you will need to set the DD_LOGS_ENABLED environment variable true within your cloud provider’s environment settings or in your container configuration (such as your Dockerfile or deployment scripts) to ensure that application logs are captured and sent to Datadog.

cloud-run-logs-1

Once instrumented, Datadog will collect Cloud Run logs with Log Management and display them within the Log Explorer and the Serverless view. Cloud Run logs enable you to keep track of events and errors as they occur within your containerized serverless application. Cloud Run traces are automatically correlated to associated logs so you can quickly identify issues that may be occurring. For example, if a Cloud Run function is tagged with a High Errors warning, you can click on that function to navigate to its associated logs. From here, you can apply a status: error query in the log search bar to filter down to that function’s error logs to figure out what the problem may be. In the screenshot below, for instance, we can see that requests to a version of an API or service endpoint that hasn’t been implemented (or deprecated) is leading to errors in your Cloud Run application.

cloud-run-logs-2

Start monitoring Cloud Run today

In this post, we looked at how you can get full visibility into your Cloud Run services by collecting and monitoring traces, metrics, and logs with Datadog’s unified platform. With Datadog, you can quickly understand the health and performance of your containerized serverless applications, rightsize your resources appropriately, and identify and troubleshoot any issues that may arise. And, with more than 1,000 integrations, you can easily use Datadog to monitor Cloud Run alongside any other cloud technologies and services your organization relies on. To get started monitoring Cloud Run, check out our documentation. Or, if you’re not already using Datadog, get started today with a 14-day free trial.