Skip to content

[Stack Monitoring] [Kibana] Avoid querying /api/status on every cycle #31118

Open
@matschaffer

Description

@afharo opened #29911 to move the url generation for the kibana module into the init phase.

As-written the PR might cause problems in the event kibana is upgraded without upgrading (or at least restarting) metricbeat.

@afharo proposed this instead:

  1. During the first init, retrieve GET /api/status to build the final GET /api/stats URL
  2. Use the final URL for every subsequent call
  3. Check that kibana.version coming from GET /api/stats didn't change. If it changes, go back to 1.

Acceptance criteria:

  • /api/status not called on every 10s metricbeat cycle
  • metricbeat notices and changes behavior accordingly if kibana changes versions during a single metricbeat process run

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions