OpenTAKServer icon indicating copy to clipboard operation
OpenTAKServer copied to clipboard

Add CoT Parser and EUD Handler health apis

Open danshev opened this issue 3 months ago • 1 comments

Partially addresses #142

Example output from /api/health/cot

{
  "components": {
    "logs": "error-free",
    "rabbitmq": "up",
    "service": "active"
  },
  "problems": [],
  "status": "operational-healthy",
  "timestamp": "2025-08-28T17:05:34.033214+00:00"
}

The value of status can be either:

  • operational-healthy ... Rabbit + CoT Parser services are running, no [cot_parser] errors in last 100 lines of logs
  • operational-errors ...Rabbit + CoT Parser services are running, found [cot_parser] errors in last 100 lines of logs
  • non-operational ... Rabbit and/or CoT Parser are/is not running

The intent of this output is to ultimately support a "Stoplight" (i.e., green / yellow / red) visualization on the UI.

danshev avatar Aug 28 '25 17:08 danshev

Thinking about this a bit more …

It might make more sense to pull out the RabbitMQ service into its own health endpoint (i.e., /rabbit) so that, then, the /cot and /eud endpoints are entirely just each service

Happy to rework — please just let me know your preference

danshev avatar Aug 29 '25 02:08 danshev