tags

package
v0.0.0-...-bfe00b6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tags provides utilities for working with tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterAgentStaticTags

func GetClusterAgentStaticTags(ctx context.Context, config config.Reader) map[string][]string

GetClusterAgentStaticTags is similar to GetStaticTags, but returning a map[string][]string containing <key>:<value> pairs for all global environment tags on the cluster agent. This includes: DD_TAGS, DD_EXTRA_TAGS, DD_CLUSTER_CHECKS_EXTRA_TAGS, DD_ORCHESTRATOR_EXPLORER_EXTRA_TAGS

func GetStaticTags

func GetStaticTags(ctx context.Context, datadogConfig config.Component) map[string][]string

GetStaticTags is similar to GetStaticTagsSlice, but returning a map[string][]string containing <key>:<value> pairs for tags. Tags not matching this pattern are omitted.

func GetStaticTagsSlice

func GetStaticTagsSlice(ctx context.Context, datadogConfig config.Reader) (tags []string)

GetStaticTagsSlice gets the "static tags" for this agent. These are tags that are attached directly to everything the agent produces, but _not_ included in host tags. In environments with no host metadata (such as where the hostname is empty), tags that would otherwise be included in host metadata are generated by this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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