1
0
Fork 0

Add Peers to status output

master
Philip O'Toole 8 years ago
parent 746c002045
commit 83026e4612

@ -1,4 +1,5 @@
## 3.1.1 (Unreleased)
- [PR #133](https://github.com/rqlite/rqlite/pull/133): Add Peers to status output.
- [PR #132](https://github.com/rqlite/rqlite/pull/132): Support removing a node from a cluster.
- [PR #131](https://github.com/rqlite/rqlite/pull/131): Only convert []byte from database to string if "text". Thanks @bkeroackdsc
- [PR #129](https://github.com/rqlite/rqlite/pull/129): Verify all statements sent to query endpoint begin with "SELECT".

@ -357,11 +357,16 @@ func (s *Store) Stats() (map[string]interface{}, error) {
s.metaMu.RLock()
defer s.metaMu.RUnlock()
peers, err := s.peerStore.Peers()
if err != nil {
return nil, err
}
status := map[string]interface{}{
"raft": s.raft.Stats(),
"addr": s.Addr().String(),
"leader": s.Leader(),
"meta": s.meta,
"peers": peers,
"dir": s.raftDir,
"sqlite3": dbStatus,
}

Loading…
Cancel
Save