When we go to the competing consumers tab (e.g. http://localhost:2113/web/index.html#/subscriptions) it lists connections to group/stream. How do we find out which client (ip) is actually connected?
Don't think its in the UI though it could be added. It is available
via the rest interface:
➜ ~ curl -v http://127.0.0.1:2113/subscriptions/shitbird/foo/info
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 2113 (#0)
GET /subscriptions/shitbird/foo/info HTTP/1.1
Host: 127.0.0.1:2113
User-Agent: curl/7.47.0
Accept: */*
< HTTP/1.1 200 OK
< Access-Control-Allow-Methods: GET, GET, OPTIONS
< Access-Control-Allow-Headers: Content-Type, X-Requested-With,
X-Forwarded-Host, X-Forwarded-Prefix, X-PINGOTHER, Authorization,
ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType,
ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTos
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: Location, ES-Position, ES-CurrentVersion
< Content-Type: application/json; charset=utf-8
< Server: Mono-HTTPAPI/1.0
< Date: Thu, 13 Apr 2017 16:20:57 GMT
< Content-Length: 1219
< Keep-Alive: timeout=15,max=100
<
{
"links": [
{
"href": "http://127.0.0.1:2113/subscriptions/shitbird/foo/info",
"rel": "detail"
},
{
"href": "http://127.0.0.1:2113/subscriptions/shitbird/foo/replayParked",
"rel": "replayParked"
}
],
"config": {
"resolveLinktos": false,
"startFrom": 0,
"messageTimeoutMilliseconds": 10000,
"extraStatistics": false,
"maxRetryCount": 10,
"liveBufferSize": 500,
"bufferSize": 500,
"readBatchSize": 20,
"preferRoundRobin": true,
"checkPointAfterMilliseconds": 1000,
"minCheckPointCount": 10,
"maxCheckPointCount": 500,
"maxSubscriberCount": 10,
"namedConsumerStrategy": "RoundRobin"
},
"eventStreamId": "shitbird",
"groupName": "foo",
"status": "Live",
"averageItemsPerSecond": 0.0,
"parkedMessageUri":
"http://127.0.0.1:2113/streams/%24persistentsubscription-shitbird::foo-parked",
"getMessagesUri": "http://127.0.0.1:2113/subscriptions/shitbird/foo/1",
"totalItemsProcessed": 0,
"countSinceLastMeasurement": 0,
"lastProcessedEventNumber": -1,
"lastKnownEventNumber": -1,
"readBufferCount": 0,
"liveBufferCount": 0,
"retryBufferCount": 0,
"totalInFlightMessages": 0,
"connections": []
* Connection #0 to host 127.0.0.1 left intact
}%
Thanks. i will try that.
let me know if that works for you and we will try to add that info to the ui.
cheers,
greg
Yep. That works. Thank you !!
I noticed it is possible to query this endpoint without providing any credentials. Is there a way to block anonymous access to this endpoint?