datadog

command
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

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 allowed 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. Appears in:

  • Config | 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

UnifiedServiceTags configures the values of the Unified Service datadog tags on both Deployment and Pods Appears in:

  • Config | Field | Description | | --- | --- | | env string | The env tag | | service string | The service tag | | version string | The version tag |

Documentation

Overview

+groupName=plugins.rig.dev -- Only used for config doc generation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL