Datadog Plugin
The rigdev.datadog
plugin adds Datadog specific tags to the Deployment and Pods of the capsule as requested here. It can enable/disable the execution of the Datadog Admission Controller on the pods and sets the necessary library and unified service tags.
The config can be templated with standard Go templating and has
.capsule
as its templating context.
Example
Config:
libraryTag:
java: v1.31.0
unifiedServiceTags:
env: my-env
service: my-service
versin: my-version
The resulting Deployment
resource of the Capsule
kind: Deployment
metadata:
...
labels:
tags.datadoghq.com/env: my-env,
tags.datadoghq.com/service: my-service,
tags.datadoghq.com/version: my-version,
spec:
template:
metadata:
labels:
admission.datadoghq.com/enabled: true,
tags.datadoghq.com/env: my-env,
tags.datadoghq.com/service: my-name,
tags.datadoghq.com/version: my-version,
annotations:
admission.datadoghq.com/java-lib.version: v1.31.0,
...
Config
Configuration for the datadog plugin
Field |
Description |
dontAddEnabledAnnotation boolean |
DontAddEnabledAnnotation toggles if the pods should have an annotation allowing the Datadog Admission controller to modify them. |
libraryTag LibraryTag |
LibraryTag defines configuration for which datadog libraries to inject into the pods. |
unifiedServiceTags UnifiedServiceTags |
UnifiedServiceTags configures the values for the Unified Service datadog tags. |
LibraryTag
LibraryTag defines configuration for which datadog libraries to let the admission controller inject into the pods The admission controller will inject libraries from a container with the specified tag if the field is set.
Field |
Description |
java string |
Tag of the Java library container |
javascript string |
Tag of the JavaScript library container |
python string |
Tag of the Python library container |
net string |
Tag of the .NET library container |
ruby string |
Tag of the Ruby library container |
UnifiedServiceTags configures the values of the Unified Service datadog tags on both Deployment and Pods
Field |
Description |
env string |
The env tag |
service string |
The service tag |
version string |
The version tag |