Datadog Operator
Deploy the Datadog Operator and the Datadog Agent
module "datadog" {
source = "../../modules/datadog"
cluster_name = "my-cluster"
datadog_secret = "secretsmanager/secret/namespace"
environment = "example"
product_name = "dai"
datadog_operator_helm_values = {
values = [
<<-YAML
remoteConfiguration:
enabled: true
YAML
]
}
datadog_operator_helm_set = [
{
name = "replicas"
value = 2
}
]
datadog_agent_helm_values = [
<<-YAML
spec:
override:
clusterAgent:
replicas: 1
YAML
]
datadog_agent_helm_set = [
{
name = "spec.features.admissionController.agentSidecarInjection.image.tag",
value = "7.57.2"
}
]
}
Requirements
Providers
Modules
No modules.
Resources
Outputs
No outputs.
Requirements
Providers
Modules
Resources
Name |
Description |
Type |
Default |
Required |
cluster_name |
Name of the cluster |
string |
n/a |
yes |
datadog |
Object of Datadog configurations |
object({ agent_api_key_name = optional(string) # by default it uses the cluster name agent_app_key_name = optional(string) # by default it uses the cluster name operator_chart_version = optional(string) custom_resource_chart_version = optional(string) }) |
{} |
no |
datadog_agent_helm_values |
List of Datadog Agent custom resource values. https://github.com/DataDog/datadog-operator/blob/main/docs/configuration.v2alpha1.md |
list(object({ name = string value = string })) |
[] |
no |
datadog_operator_helm_values |
List of Datadog Operator values |
list(object({ name = string value = string })) |
[ { "name": "resources.requests.cpu", "value": "10m" }, { "name": "resources.requests.memory", "value": "50Mi" } ] |
no |
namespace |
Namespace for Datadog resources |
string |
"monitoring" |
no |
Outputs
No outputs.
Requirements
Providers
Modules
Resources
Name |
Description |
Type |
Default |
Required |
cluster_name |
Name of the cluster |
string |
n/a |
yes |
datadog |
Object of Datadog configurations |
object({ agent_api_key_name = optional(string) # by default it uses the cluster name agent_app_key_name = optional(string) # by default it uses the cluster name operator_chart_version = optional(string) custom_resource_chart_version = optional(string) }) |
{} |
no |
datadog_agent_helm_values |
List of Datadog Agent custom resource values. https://github.com/DataDog/datadog-operator/blob/main/docs/configuration.v2alpha1.md |
list(object({ name = string value = string })) |
[] |
no |
datadog_operator_helm_values |
List of Datadog Operator values |
list(object({ name = string value = string })) |
[ { "name": "resources.requests.cpu", "value": "10m" }, { "name": "resources.requests.memory", "value": "50Mi" } ] |
no |
namespace |
Namespace for Datadog resources |
string |
"monitoring" |
no |
Outputs
No outputs.