A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

Guide

Sets up the annotations and environment variables to assist a webservice component to have correct collection of logs and apm stats by a datadog agent installed on the host nodes.

The Datadog agent must already be install on the cluster nodes.

The expectation is that the datadog volume is /var/run/datadog on the host, and will be mounted as /var/run/datadog in the container, though this can be changed (not recommended).

Simple use case example​

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: myapp
spec:
components:
- name: myapp
type: webservice
properties:
image: me/myapp:1.0.15
traits:
- type: datadog
properties:
serviceName: "myService"
env: "prod"
version: "1.0.15"

Comprehensive use case example​

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: myapp
spec:
components:
- name: myapp
type: webservice
properties:
image: me/myapp:1.0.17
traits:
- type: datadog
properties:
serviceName: "myService"
env: "dev"
version: "1.0.17"
source: "csharp"
hostMountPath: "/var/run/custom-datadog"
mountPath: "/usr/var/run/datadog"
volumeName: "customdatadog"
autoDependencyMap: true
autoDependencies: "http-client,sql-server,firestore"
logDirectSubmissionIntegrations: "Serilog"