fix GaugeValue type

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
pull/2825/head
dongjiang1989 2 years ago committed by dongjiang
parent 96e88b40dc
commit 44e50e1066
  1. 16
      collector/fixtures/e2e-64k-page-output.txt
  2. 16
      collector/fixtures/e2e-output.txt
  3. 4
      collector/mountstats_linux.go

@ -2341,14 +2341,14 @@ node_mountstats_nfs_transport_pending_queue_total{export="192.168.1.1:/srv/test"
# TYPE node_mountstats_nfs_transport_pullup_copy_total counter
node_mountstats_nfs_transport_pullup_copy_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_pullup_copy_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_reply_sum Total number of rdma reply accessed when receiving a reply.
# TYPE node_mountstats_nfs_transport_rdma_reply_sum gauge
node_mountstats_nfs_transport_rdma_reply_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_reply_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_request_sum Total number of rdma request accessed when sending a call.
# TYPE node_mountstats_nfs_transport_rdma_request_sum gauge
node_mountstats_nfs_transport_rdma_request_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_request_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_reply_requests Total number of rdma reply accessed when receiving a reply.
# TYPE node_mountstats_nfs_transport_rdma_reply_requests gauge
node_mountstats_nfs_transport_rdma_reply_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_reply_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_requests Total number of rdma request accessed when sending a call.
# TYPE node_mountstats_nfs_transport_rdma_requests gauge
node_mountstats_nfs_transport_rdma_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_read_chunk_total Total number of read chunk accessed when sending a call.
# TYPE node_mountstats_nfs_transport_read_chunk_total counter
node_mountstats_nfs_transport_read_chunk_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0

@ -2373,14 +2373,14 @@ node_mountstats_nfs_transport_pending_queue_total{export="192.168.1.1:/srv/test"
# TYPE node_mountstats_nfs_transport_pullup_copy_total counter
node_mountstats_nfs_transport_pullup_copy_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_pullup_copy_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_reply_sum Total number of rdma reply accessed when receiving a reply.
# TYPE node_mountstats_nfs_transport_rdma_reply_sum gauge
node_mountstats_nfs_transport_rdma_reply_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_reply_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_request_sum Total number of rdma request accessed when sending a call.
# TYPE node_mountstats_nfs_transport_rdma_request_sum gauge
node_mountstats_nfs_transport_rdma_request_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_request_sum{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_reply_requests Total number of rdma reply accessed when receiving a reply.
# TYPE node_mountstats_nfs_transport_rdma_reply_requests gauge
node_mountstats_nfs_transport_rdma_reply_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_reply_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_rdma_requests Total number of rdma request accessed when sending a call.
# TYPE node_mountstats_nfs_transport_rdma_requests gauge
node_mountstats_nfs_transport_rdma_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0
node_mountstats_nfs_transport_rdma_requests{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="udp"} 0
# HELP node_mountstats_nfs_transport_read_chunk_total Total number of read chunk accessed when sending a call.
# TYPE node_mountstats_nfs_transport_read_chunk_total counter
node_mountstats_nfs_transport_read_chunk_total{export="192.168.1.1:/srv/test",mountaddr="192.168.1.1",protocol="tcp"} 0

@ -306,7 +306,7 @@ func NewMountStatsCollector(logger *slog.Logger) (Collector, error) {
),
NFSTransportRdmaRequestTotal: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "transport_rdma_request_sum"),
prometheus.BuildFQName(namespace, subsystem, "transport_rdma_requests"),
"Total number of rdma request accessed when sending a call.",
labels,
nil,
@ -369,7 +369,7 @@ func NewMountStatsCollector(logger *slog.Logger) (Collector, error) {
),
NFSTransportRdmaReplyTotal: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "transport_rdma_reply_sum"),
prometheus.BuildFQName(namespace, subsystem, "transport_rdma_reply_requests"),
"Total number of rdma reply accessed when receiving a reply.",
labels,
nil,

Loading…
Cancel
Save