Move status request metrics to their own label

pull/5459/head
Todd Persen 2016-01-26 18:10:02 -08:00
parent 06e91dfca1
commit 66e6375973
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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