Move status request metrics to their own label
parent
06e91dfca1
commit
66e6375973
|
@ -580,7 +580,7 @@ func (h *Handler) servePing(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// serveStatus returns a simple response to let the client know the whole cluster is running.
|
||||
func (h *Handler) serveStatus(w http.ResponseWriter, r *http.Request) {
|
||||
h.statMap.Add(statPingRequest, 1)
|
||||
h.statMap.Add(statStatusRequest, 1)
|
||||
|
||||
if err := h.MetaClient.Ping(false); err != nil {
|
||||
w.WriteHeader(http.StatusServiceUnavailable)
|
||||
|
|
|
@ -21,6 +21,7 @@ const (
|
|||
statQueryRequest = "queryReq" // Number of query requests served
|
||||
statWriteRequest = "writeReq" // Number of write requests serverd
|
||||
statPingRequest = "pingReq" // Number of ping requests served
|
||||
statStatusRequest = "statusReq" // Number of status requests served
|
||||
statWriteRequestBytesReceived = "writeReqBytes" // Sum of all bytes in write requests
|
||||
statQueryRequestBytesTransmitted = "queryRespBytes" // Sum of all bytes returned in query reponses
|
||||
statPointsWrittenOK = "pointsWrittenOK" // Number of points written OK
|
||||
|
|
Loading…
Reference in New Issue