drone / mq

a lightweight STOMP message broker
http://mq.drone.io
MIT License
42 stars 9 forks source link

meta-data endpoints #6

Open bradrydzewski opened 8 years ago

bradrydzewski commented 8 years ago

we should provide a set of endpoint for administrators to get meta-data, such as:

  1. list of all active sessions
  2. list of all subscriptions for a single session
  3. list of all active handlers (topics, queues, etc)
  4. list of all enqueues messages in a single queue
  5. list of all subscribers to a single queue
bradrydzewski commented 8 years ago

some recent progress on this ...

list of active sessions:

GET /meta/sessions
[
  {
    "address": "127.0.0.1:60168",
    "username": "johnsmith",
    "headers": {
      "x-real-ip": "127.0.0.1"
    }
  },
  {
    "address": "127.0.0.1:60169",
    "username": "janedoe",
    "headers": {
      "x-real-ip": "127.0.0.1"
    }
  }
]

list of active handlers / destinations:

GET /meta/destinations
[
  {
    "destination": "\/topic\/events"
  },
  {
    "destination": "\/topic\/logs.28"
  },
  {
    "destination": "\/queue\/pending"
  }
  {
    "destination": "\/queue\/updates"
  }
]