fix GaugeValue type

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
pull/2825/head
dongjiang1989 2023-10-16 22:54:45 +08:00
parent 42c96a05a1
commit e1d0e2e9e8
No known key found for this signature in database
3 changed files with 18 additions and 18 deletions

View File

@ -2283,14 +2283,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

View File

@ -2305,14 +2305,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

View File

@ -308,7 +308,7 @@ func NewMountStatsCollector(logger log.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,
@ -371,7 +371,7 @@ func NewMountStatsCollector(logger log.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,