Skip to content

Conversation

@danshev
Copy link

@danshev danshev commented Aug 28, 2025

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
Copy link
Author

danshev commented Aug 29, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant