Skip to content

[Heartbeat] States loader should only be enabled in narrow situations #33357

@andrewvc

Description

@andrewvc

The new states loader should only be enabled for monitors configured via central management due to it not being as compatible with the current ES output's output settings, and additionally to ensure that users of legacy heartbeat configs don't see spurious error messages in the console regarding states not being loadable.

This may be a bit tricky to detect at startup when we initially create the ES client, however, if we can detect that we're either:

  1. Running in the service
  2. Running under agent

That should be sufficient

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions