- Implements: aws-cdk-lib.ITaggable
import { DataDogSidecar } from '@pgarbe/cdk-datadog'
new DataDogSidecar(scope: Construct, id: string, taskDefinition: TaskDefinition, props: DataDogSideCarProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
taskDefinition |
aws-cdk-lib.aws_ecs.TaskDefinition |
No description. |
props |
DataDogSideCarProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: aws-cdk-lib.aws_ecs.TaskDefinition
- Type: DataDogSideCarProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
public toString(): stringReturns a string representation of this construct.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
addToTaskDefinition |
Creates a DataDog sidecar to an existing task definition. |
import { DataDogSidecar } from '@pgarbe/cdk-datadog'
DataDogSidecar.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { DataDogSidecar } from '@pgarbe/cdk-datadog'
DataDogSidecar.addToTaskDefinition(taskDefinition: TaskDefinition, props: DataDogSideCarProps)Creates a DataDog sidecar to an existing task definition.
- Type: aws-cdk-lib.aws_ecs.TaskDefinition
- Type: DataDogSideCarProps
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly tags: TagManager;- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
import { DataDogCredentials } from '@pgarbe/cdk-datadog'
const dataDogCredentials: DataDogCredentials = { ... }| Name | Type | Description |
|---|---|---|
datadogApiKey |
string |
No description. |
datadogAppKey |
string |
No description. |
datadogSite |
DataDogSite |
No description. |
public readonly datadogApiKey: string;- Type: string
public readonly datadogAppKey: string;- Type: string
public readonly datadogSite: DataDogSite;- Type: DataDogSite
import { DataDogLambdaAspectProps } from '@pgarbe/cdk-datadog'
const dataDogLambdaAspectProps: DataDogLambdaAspectProps = { ... }| Name | Type | Description |
|---|---|---|
dataDogApiKey |
string | aws-cdk-lib.aws_ssm.IStringParameter |
Defines the DataDog API Key. |
datadogSite |
DataDogSite |
Destination site for your metrics, traces, and logs. |
logsInjection |
boolean |
Inject Datadog trace id into logs for correlation. |
nodeVersion |
string |
Version of DataDog extension layer for Node runtime. |
pythonVersion |
string |
Version of DataDog extension layer for Python runtime. |
tracing |
boolean |
Initialize the Datadog tracer when set to true. |
public readonly dataDogApiKey: string | IStringParameter;- Type: string | aws-cdk-lib.aws_ssm.IStringParameter
Defines the DataDog API Key.
A string will be mapped to DD_API_KEY env variable in plain-text (NOT recommended) An SSM StringParamter (optional secure) is mapped to either DD_API_KEY_SECRET_ARN or DD_API_KEY_SSM_NAME.
public readonly datadogSite: DataDogSite;- Type: DataDogSite
- Default: : DataDogSite.US
Destination site for your metrics, traces, and logs.
public readonly logsInjection: boolean;- Type: boolean
- Default: : true
Inject Datadog trace id into logs for correlation.
public readonly nodeVersion: string;- Type: string
- Default: : 41
Version of DataDog extension layer for Node runtime.
public readonly pythonVersion: string;- Type: string
- Default: : 26
Version of DataDog extension layer for Python runtime.
public readonly tracing: boolean;- Type: boolean
- Default: : false
Initialize the Datadog tracer when set to true.
import { DataDogSideCarProps } from '@pgarbe/cdk-datadog'
const dataDogSideCarProps: DataDogSideCarProps = { ... }| Name | Type | Description |
|---|---|---|
datadogApiKey |
aws-cdk-lib.aws_ecs.Secret |
The secret that stores the Datadog API key. |
apmEnabled |
boolean |
Enable trace collection with the Trace Agent. |
datadogSite |
DataDogSite |
Destination site for your metrics, traces, and logs. |
jmxFetchEnabled |
boolean |
Enable collection of JMX metrics by Java Tracing Agent. |
logging |
aws-cdk-lib.aws_ecs.LogDriver |
The logging configuration for Datadog container. |
public readonly datadogApiKey: Secret;- Type: aws-cdk-lib.aws_ecs.Secret
The secret that stores the Datadog API key.
public readonly apmEnabled: boolean;- Type: boolean
Enable trace collection with the Trace Agent.
Default: true
public readonly datadogSite: DataDogSite;- Type: DataDogSite
Destination site for your metrics, traces, and logs.
Default: DataDogSite.us
public readonly jmxFetchEnabled: boolean;- Type: boolean
Enable collection of JMX metrics by Java Tracing Agent.
Default: true
public readonly logging: LogDriver;- Type: aws-cdk-lib.aws_ecs.LogDriver
The logging configuration for Datadog container.
- Implements: aws-cdk-lib.IAspect
Adds DataDog layer to supported lambda functions.
import { DataDogLambda } from '@pgarbe/cdk-datadog'
new DataDogLambda(props: DataDogLambdaAspectProps)| Name | Type | Description |
|---|---|---|
props |
DataDogLambdaAspectProps |
No description. |
- Type: DataDogLambdaAspectProps
| Name | Description |
|---|---|
visit |
All aspects can visit an IConstruct. |
public visit(node: IConstruct): voidAll aspects can visit an IConstruct.
- Type: constructs.IConstruct
| Name | Description |
|---|---|
extendFuntions |
Adds DataDog layer to supported lambda functions. |
import { DataDogLambda } from '@pgarbe/cdk-datadog'
DataDogLambda.extendFuntions(scope: Construct, props: DataDogLambdaAspectProps)Adds DataDog layer to supported lambda functions.
- Type: constructs.Construct
- Type: DataDogLambdaAspectProps
| Name | Description |
|---|---|
EU |
No description. |
US |
No description. |