Cleanup NFS metrics (#834)
* Cleanup NFS metrics * Update `nfs` metric names to match `nfsd`. * Remove uneeded `tcp` label from TCP connections metric. * Remove uneeded `v` on `nfsd` metrics. * Enable all `nfs` v4 client metrics. * Remove `nfs` metric name overrides. * Add ppc64le fixture. * Fix typo.
This commit is contained in:
parent
6fc06e8288
commit
e0d54a509c
4 changed files with 383 additions and 406 deletions
|
|
@ -186,7 +186,7 @@ func (c *nfsdCollector) updateNFSdReadAheadCacheStats(ch chan<- prometheus.Metri
|
|||
func (c *nfsdCollector) updateNFSdNetworkStats(ch chan<- prometheus.Metric, s *nfs.Network) {
|
||||
packetDesc := prometheus.NewDesc(
|
||||
prometheus.BuildFQName(namespace, nfsdSubsystem, "packets_total"),
|
||||
"Total NFSd network packets (sent+recieved) by protocol type.",
|
||||
"Total NFSd network packets (sent+received) by protocol type.",
|
||||
[]string{"proto"},
|
||||
nil,
|
||||
)
|
||||
|
|
@ -242,7 +242,7 @@ func (c *nfsdCollector) updateNFSdServerRPCStats(ch chan<- prometheus.Metric, s
|
|||
|
||||
// updateNFSdRequestsv2Stats collects statistics for NFSv2 requests.
|
||||
func (c *nfsdCollector) updateNFSdRequestsv2Stats(ch chan<- prometheus.Metric, s *nfs.V2Stats) {
|
||||
const proto = "v2"
|
||||
const proto = "2"
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.GetAttr), proto, "GetAttr")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
|
|
@ -281,7 +281,7 @@ func (c *nfsdCollector) updateNFSdRequestsv2Stats(ch chan<- prometheus.Metric, s
|
|||
|
||||
// updateNFSdRequestsv3Stats collects statistics for NFSv3 requests.
|
||||
func (c *nfsdCollector) updateNFSdRequestsv3Stats(ch chan<- prometheus.Metric, s *nfs.V3Stats) {
|
||||
const proto = "v3"
|
||||
const proto = "3"
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.GetAttr), proto, "GetAttr")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
|
|
@ -328,7 +328,7 @@ func (c *nfsdCollector) updateNFSdRequestsv3Stats(ch chan<- prometheus.Metric, s
|
|||
|
||||
// updateNFSdRequestsv4Stats collects statistics for NFSv4 requests.
|
||||
func (c *nfsdCollector) updateNFSdRequestsv4Stats(ch chan<- prometheus.Metric, s *nfs.V4Ops) {
|
||||
const proto = "v4"
|
||||
const proto = "4"
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
float64(s.Access), proto, "Access")
|
||||
ch <- prometheus.MustNewConstMetric(c.requestsDesc, prometheus.CounterValue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue