


















Santiago Gómez Sáez
This guest blog post is by Santiago Gómez Sáez, who is a principal cloud architect at dx.one - Volkswagen Group and a Datadog Ambassador. At dx.one - Volkswagen, Santiago develops architectures that use standardization and automation to optimize the performance of engineering teams.
The adoption of Datadog in large enterprises typically goes beyond integrating metrics, traces, and logs to unify observability. These enterprises must implement and use Datadog in a compliant and standard way across divisions, teams, and projects to enhance data security, comply with regulations, manage costs, and increase operational efficiency.
In this blog post, I will introduce best practices for management and governance of Datadog at scale in highly distributed cloud environments. These recommendations come from my experience of centrally providing and using Datadog in multiple divisions in the Volkswagen Group. These divisions run customer-facing workloads across more than 2,000 AWS accounts and include more than 500 Datadog users worldwide.
Datadog organizations are logical groups of users, configurations, and telemetry data that have a parent-child relationship. Child organizations are associated with a parent organization. Typically, a single-organization model is the simplest way to set up Datadog. Small and medium-sized Datadog customers usually take this approach to provide unified, real-time observability across the organization.
Large enterprises that have multiple divisions, such as Volkswagen, need to fulfill legal requirements and ensure isolation among divisions. These obligations demand a more sophisticated multi-organization setup. With the multi-organization feature, enterprises can manage multiple child organizations from one parent organization. A multi-organization setup provides the following main benefits:
The multi-organization feature offers the flexibility to have different structural organization models in Datadog. In order from most consolidated to most distributed, the following structural models are possible:
Given the possible models, which one should you choose? The choice depends on your organizational requirements. From my experience, I recommend the following actions:
After the organization structure is defined, it’s time to integrate Datadog with your environment and automate the configuration and governance of Datadog. You start the process by integrating Datadog with your identity provider’s single sign-on (SSO).
Datadog supports SAML 2.0 with custom domains and just-in-time provisioning or SCIM provisioning. You can configure provisioning by using the Datadog Web App, Datadog API, or Datadog Terraform provider.
To standardize access, you should deactivate password authentications and Google authentications.
The next step occurs when a division, team, or project requests a Datadog environment in a self-service landing zone. An automated mechanism to provision new users or child organizations and configure them in minutes will save you time and trouble. With automation, you can increase the adoption of Datadog and prevent human error during the multi-organization setup process while implementing governance at scale.
It’s ideal to automate the following repetitive steps:
The preferred implementation method for the previous tasks is to use Terraform to orchestrate and maintain a state for each organization. For example, you can orchestrate the creation of organizations, credentials, and monitors in a standardized way to automate your onboarding processes. By using Terraform, you can implement a step-by-step process that you can roll back if failures occur.
When Datadog users and organizations are provisioned and ready, development teams will continuously integrate cloud environments (for example, AWS accounts) with Datadog. These teams need a standard architecture and automated process for this integration.
The following reference architecture provides an automated process that uses Terraform and GitHub Actions to configure the native Datadog integration and provision a standard logging funnel toward Datadog. The architecture uses the Datadog AWS integration for metrics and includes a stack in AWS for storage of logs in Amazon S3. The architecture also includes a logging funnel that uses Amazon Data Firehose and AWS Lambda to transmit tagged events to Datadog.

As usage of Datadog scales within your teams, continuous governance becomes more important. To promote consistent and compliant usage of Datadog across your development teams, implement the following best practices:
You should centrally manage and automatically roll out these configurations to all child organizations at regular time intervals. You can use automation processes that interact with the Datadog API to configure and reconfigure child organizations. You can implement these processes as Lambda step functions or define them as Terraform templates to orchestrate a standard set of governance rules.
Automating the provisioning and management of Datadog organizations at scale can help increase Datadog adoption while maximizing compliance and minimizing misconfigurations. Large enterprises can achieve these benefits by applying the aforementioned best practices and reference architecture. In summary, the following steps are particularly useful:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。