mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
NFSd: fix nfsd v4 index miss (#2824)
* fix nfsd v4 index miss --------- Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
This commit is contained in:
parent
0f6a4d8c39
commit
86ed8cdc6b
@ -2738,6 +2738,8 @@ node_nfsd_requests_total{method="SecInfo",proto="4"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="2"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="3"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="4"} 0
|
||||
node_nfsd_requests_total{method="SetClientID",proto="4"} 3
|
||||
node_nfsd_requests_total{method="SetClientIDConfirm",proto="4"} 3
|
||||
node_nfsd_requests_total{method="SymLink",proto="2"} 0
|
||||
node_nfsd_requests_total{method="SymLink",proto="3"} 0
|
||||
node_nfsd_requests_total{method="Verify",proto="4"} 0
|
||||
|
@ -2760,6 +2760,8 @@ node_nfsd_requests_total{method="SecInfo",proto="4"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="2"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="3"} 0
|
||||
node_nfsd_requests_total{method="SetAttr",proto="4"} 0
|
||||
node_nfsd_requests_total{method="SetClientID",proto="4"} 3
|
||||
node_nfsd_requests_total{method="SetClientIDConfirm",proto="4"} 3
|
||||
node_nfsd_requests_total{method="SymLink",proto="2"} 0
|
||||
node_nfsd_requests_total{method="SymLink",proto="3"} 0
|
||||
node_nfsd_requests_total{method="Verify",proto="4"} 0
|
||||
|
@ -395,6 +395,10 @@ func (c *nfsdCollector) updateNFSdRequestsv4Stats(ch chan<- prometheus.Metric, s
|
||||
float64(s.SecInfo), proto, "SecInfo")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.SetAttr), proto, "SetAttr")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.SetClientID), proto, "SetClientID")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.SetClientIDConfirm), proto, "SetClientIDConfirm")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.Verify), proto, "Verify")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
|
Loading…
Reference in New Issue
Block a user