Often, you will want to collect mostly unstructured data that doesn't map well to tags, like fine-grained product version information.
The base class provides a method that handles such cases. The collected data is captured by [flares][datadog-agent-flare], displayed on the Agent's [status page][datadog-agent-status-page], and will eventually be queryable [in-app][].
The set_metadata
method of the base class updates cached metadata values, which are then
sent by the Agent at regular intervals.
It requires 2 arguments:
name
- The name of the metadata.value
- The value for the metadata. Ifname
has no transformer defined then the rawvalue
will be submitted and therefore it must be astr
.
The method also accepts arbitrary keyword arguments that are forwarded to any defined transformers.
::: datadog_checks.base.utils.metadata.core.MetadataManager options: heading_level: 3 show_root_heading: false show_root_toc_entry: false members: - transform_version - transform_config