Closed rogercoll closed 2 years ago
An important point to take into account mentioned by @roobre is to keep decorating the metrics (not attached to any entity) with the Host metadata taking into account that some of this metadata is decorated in the backend.
We could not use FlagDMRegisterEnable
because the WindowsServices integration would stop working
Problem
The agent has a binary behaviour regarding the metrics from an integration, whether attach them all to the host entity or any (
FlagDMRegisterEnable = "dm_register_enabled”
). Most of the integrations should be fine without attaching the host entity as the backend perform the entity synthesis but if in the near future we want to decouple core integrations (cpu, mem, etc), the agent should be able to differentiate them.Feature Description
Add a field to each entity data to let know the agent whether to add the host entity or not. For example,
ignore_host_entity
defaulting tofalse
:Additional context
https://github.com/newrelic/infrastructure-agent/issues/865