camunda / camunda

Distributed Workflow Engine for Microservices Orchestration
https://camunda.com/platform/
3.09k stars 562 forks source link

Add endpoint to query status of exporters #19462

Closed deepthidevaki closed 1 week ago

deepthidevaki commented 1 week ago

Description

This PR adds an endpoint GET actuator/exporters which returns a list of exporters with their current status - enabling,enabled,disabling or disabled.

[
  {
    "exporterId": "exporter-A",
    "status": "ENABLING"
  },
  {
    "exporterId": "exporter-B",
    "status": "ENABLED"
  }
]

There is also a status unknown as a fallback incase we are not able to determine the aggregated status reliably. This can happen when some partitions have enabled, and some partition have disabled but there is no pending changes to disable or enable the rest of them. This case is not expected, because we do not provide API to change it per partition or per broker. So this is more of a fallback option in case something unexpected happen.

For debugging purposes, we can use the cluster endpoint which returns the detailed configuration per broker per partition.

Related issues

closes #19023