Derek Collison
5bea74c2ed
Rename and move some things around
2016-04-21 09:33:26 -07:00
Derek Collison
6ce89066fb
race fix
2016-04-03 14:40:45 -07:00
Derek Collison
df02bc0bcf
Removed sublist, hash and hashmap, no longer needed.
2016-04-02 12:52:48 -07:00
Derek Collison
3dd490a449
Go Report Card fixes
2016-03-20 16:06:28 -10:00
Colin Sullivan
2baac47820
Address issues found by golint.
...
* No functional changes
* Did not address the ALL_CAPS issues
* Did not modify public APIs and field names.
2016-03-15 15:21:13 -06:00
Waldemar Quevedo
7ac3eae82e
Set IP and Port for connections using TLS in /connz
2016-02-15 17:40:13 -08:00
Ivan Kozlovic
193597dbab
Update test that would catch incorrect NumConns
...
- Updating TestConnzWithOffsetAndLimit() to test for c.NumConns.
This would have caught the issue that was fixed in my previous change.
- Use of variable sortValue set to pair.Val to help readability. No functional change.
2016-02-09 12:40:20 -07:00
Ivan Kozlovic
e5f0dabe08
Reduce memory allocations + fix c.NumConns that may have been wrong.
...
c.NumConns was set early to len(s.clients). However, after the sort, it was possible that the actual Conns[] array be much smaller due to minoff/maxoff.
So c.NumConns is now updated only after applying the offsets.
In order to pre-allocate the Conns buffer, I no longer skip a client if tlsRequired is true and connection is gone. I will simply not update the TLSVersion and TLSCipher.
2016-02-08 20:46:22 -07:00
Ivan Kozlovic
ecec51a771
Reduce number of objects require to sort connection in HandleConnz
...
- Use 'Pair' again, but this time, the key is an int64 that the selected sort field will be casted to.
We therefore have now only one type of sort.
- Check validity of sort string early on.
- Ensure that the ConnInfo's field used by the sort is not the value from 'client', but really the one
that was used for the sort.
- Added a test for sort by Idle time.
2016-02-08 15:40:42 -07:00
Derek Collison
d7c8e6bca8
Fix races in monitoring
...
- Possible race/invalid value in LastActivity
- Routez
- Believe fixes #189
2016-02-06 07:09:13 -08:00
Derek Collison
c0ba6c291f
Default sort by cid for connz
2016-02-05 06:07:44 -08:00
Derek Collison
9702156d72
Connection sort updates
...
- fix bug that did not update last activity on message delivery
- added sort capabilities for last activity
- avoid extra Reverse by simply changing Less func
2016-02-05 05:49:53 -08:00
Derek Collison
26185a9722
Support for connection last activity tracking
2016-02-04 17:33:40 -08:00
Ivan Kozlovic
0540df470c
Use values from ClientInfo instead of client when returning ConnInfo.
...
When we are returning ConnInfo, if we use the client's current value, they may be off compared to the values used for the sort.
2016-02-03 22:03:38 -07:00
Ivan Kozlovic
e893d873be
Forgot to use atomic for inMsgs and inBytes in one place.
2016-02-03 21:36:07 -07:00
Ivan Kozlovic
1d6dafc6a7
Fix race on connz monitor (issue #189 )
2016-02-03 21:26:26 -07:00
Derek Collison
59a52ed83a
Documentation updates, minor fixes
2016-01-10 09:14:26 -08:00
Derek Collison
6bd8f5fd70
inlined roothtml
2016-01-09 10:04:42 -08:00
Derek Collison
3af90e454f
Track total connections, http request stats
2016-01-09 09:57:04 -08:00
Derek Collison
b0c22e9dfd
Track start and uptime per connection
2016-01-09 08:20:24 -08:00
Derek Collison
1e37a6b23c
Monitoring homepage updates, help and favico
2016-01-09 07:57:58 -08:00
Derek Collison
8393c3c994
Basic INFO for cluster auto-discovery, Addresses #126
2015-12-16 12:36:24 -08:00
Derek Collison
d1a333c713
Add in tls for connection details
2015-12-01 19:23:42 -08:00
Derek Collison
b61da04ef7
Enable HTTPS for monitoring
2015-12-01 19:01:56 -08:00
Derek Collison
a63293db6b
root page cleanup
2015-12-01 15:43:37 -08:00
Waldemar Quevedo
a1a5a3cf9c
Expose name label from client in monitoring endpoint
2015-11-01 17:50:10 -08:00
cmfatih
6b1843a8c6
Fix port info
2015-10-04 01:45:38 -04:00
Derek Collison
eed8b6cf94
Fix for #111
2015-08-23 13:23:02 -07:00
Waldemar Quevedo
9c7de6902c
Add option to sort by pending size
2015-08-22 16:00:27 -07:00
cmfatih
e86e3db2e0
Change getting callback query
2015-08-17 22:22:00 -04:00
cmfatih
7c07d5994c
Updates due to formting
2015-08-15 17:44:37 -04:00
cmfatih
001d42b1ea
Tidy change for HandleRoot
2015-08-15 17:39:35 -04:00
cmfatih
b641b94300
Add ResponseHandler
2015-08-15 17:29:37 -04:00
cmfatih
effddfd938
Add JSONP support for monitoring routes
2015-08-13 21:51:03 -04:00
cmfatih
48ea38ec59
Add Content-Type to monitoring handlers
2015-08-12 11:56:35 -04:00
Derek Collison
0e59a4a0f5
make sure offset and limit are sane
2015-08-06 16:45:10 -07:00
Derek Collison
afc1bb05b1
Added root handler, collapsed subscriptionsz
2015-08-06 00:58:24 -07:00
Derek Collison
0a0f322231
Avoid race condition, optimize locks
2015-08-05 22:31:33 -07:00
Derek Collison
9a60bc1364
Properly set pending
2015-08-05 06:39:11 -07:00
Derek Collison
1611530085
Flatten varz, add todo items to add
2015-08-05 06:31:48 -07:00
Waldemar Quevedo
763baa6cda
Return client error in case sort option is incorrect
2015-07-23 02:24:21 +00:00
Waldemar Quevedo
22ddaec7ea
Modify handling of connz offset and limit
2015-07-23 02:12:21 +00:00
Waldemar Quevedo
ad25bb322a
Add more helper types for sorting and fix test
2015-07-23 00:04:45 +00:00
Waldemar Quevedo
44c72fd06b
Make the sort options constants and minor fixes
2015-07-21 22:54:17 +00:00
Waldemar Quevedo
d9a98e11c0
Correct msgs_to and msgs_from and add tests
2015-07-17 01:46:53 +00:00
Waldemar Quevedo
4214eb578c
Add option for sorting the connz in monitor server
2015-07-16 10:58:15 -07:00
Derek Collison
4dd23e0f2d
Added slow consumers to varz, fixed reporting bug
2015-07-14 14:55:36 -07:00
Derek Collison
e1bfe2076b
Added current time to all http endpoints
2015-07-14 14:28:57 -07:00
Derek Collison
b717610c9f
Add go version to info block
2015-07-14 14:24:49 -07:00
Derek Collison
f488ece6bd
Added info, better uptime formatting
2015-07-14 14:08:09 -07:00