Fix NFSd metric type (#819)

RPC Count should be a counter, not a gauge.
This commit is contained in:
Ben Kochie 2018-02-13 17:03:22 +01:00 committed by GitHub
parent 544488ddd6
commit 3de2542d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2686,7 +2686,7 @@ node_nfsd_rpc_errors_total{error="auth"} 2
node_nfsd_rpc_errors_total{error="cInt"} 0
node_nfsd_rpc_errors_total{error="fmt"} 1
# HELP node_nfsd_server_rpcs_total Total number of NFSd RPCs.
# TYPE node_nfsd_server_rpcs_total gauge
# TYPE node_nfsd_server_rpcs_total counter
node_nfsd_server_rpcs_total 18628
# HELP node_nfsd_server_threads Total number of NFSd kernel threads that are running.
# TYPE node_nfsd_server_threads gauge

View File

@ -230,7 +230,7 @@ func (c *nfsdCollector) updateNFSdServerRPCStats(ch chan<- prometheus.Metric, s
nil,
nil,
),
prometheus.GaugeValue,
prometheus.CounterValue,
float64(s.RPCCount))
}