haagent/

directory
v0.0.0-...-041d1d8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0

README

Inventory Agent Payload

This package populates some of the ha-agent related fields in the inventories product in DataDog. More specifically the datadog_agent_ha_agent table.

This is enabled by default if ha_agent.enabled is set to true, and can be turned off using inventories_enabled config.

The payload is sent every 10min (see inventories_max_interval in the config) or whenever it's updated with at most 1 update every minute (see inventories_min_interval).

Content

Agent Configuration

Sending Agent configuration can be disabled using inventories_configuration_enabled.

Format

The payload is a JSON dict with the following fields

  • hostname - string: the hostname of the ha-agent as shown on the status page.
  • timestamp - int: the timestamp when the payload was created.
  • ha_agent_metadata - dict of string to JSON type:
    • enabled - boolean: describes if the HA Agent has been enabled in the Agent configuration.
    • state - string: HA Agent state (active or standby).

("scrubbed" indicates that secrets are removed from the field value just as they are in logs)

As the environment configuration and override only affect scalar values (as opposed to slices & maps), combining configurations should be straight-forward to do. Environment variables take precendence over the provided configuration, and runtime overrides take precendence over that.

Example Payload

Here an example of an inventory payload:

{
    "hostname": "COMP-GQ7WQN6HYC",
    "ha_agent_metadata": {
        "enabled": true,
        "state": "active"
    },
    "timestamp": 1716985696922603000
}

Directories

Path Synopsis
Package haagent implements a component to generate the 'ha_agent_metadata' metadata payload for inventory.
Package haagent implements a component to generate the 'ha_agent_metadata' metadata payload for inventory.
Package fx provides the fx module for the haagent component
Package fx provides the fx module for the haagent component
Package haagentimpl implements the haagentimpl component interface
Package haagentimpl implements the haagentimpl component interface

Jump to

Keyboard shortcuts

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