Merge pull request #708 from prometheus/mdl-fix-xfs
xfs: expose correct fields, fix metric names
This commit is contained in:
commit
715ebd1ced
|
@ -2660,18 +2660,18 @@ node_xfs_allocation_btree_records_deleted_total{device="sda1"} 0
|
|||
# HELP node_xfs_allocation_btree_records_inserted_total Number of allocation B-tree records inserted for a filesystem.
|
||||
# TYPE node_xfs_allocation_btree_records_inserted_total counter
|
||||
node_xfs_allocation_btree_records_inserted_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_mapping_btree_compares_total Number of block map B-tree compares for a filesystem.
|
||||
# TYPE node_xfs_block_mapping_btree_compares_total counter
|
||||
node_xfs_block_mapping_btree_compares_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_mapping_btree_lookups_total Number of block map B-tree lookups for a filesystem.
|
||||
# TYPE node_xfs_block_mapping_btree_lookups_total counter
|
||||
node_xfs_block_mapping_btree_lookups_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_mapping_btree_records_deleted_total Number of block map B-tree records deleted for a filesystem.
|
||||
# TYPE node_xfs_block_mapping_btree_records_deleted_total counter
|
||||
node_xfs_block_mapping_btree_records_deleted_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_mapping_btree_records_inserted_total Number of block map B-tree records inserted for a filesystem.
|
||||
# TYPE node_xfs_block_mapping_btree_records_inserted_total counter
|
||||
node_xfs_block_mapping_btree_records_inserted_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_map_btree_compares_total Number of block map B-tree compares for a filesystem.
|
||||
# TYPE node_xfs_block_map_btree_compares_total counter
|
||||
node_xfs_block_map_btree_compares_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_map_btree_lookups_total Number of block map B-tree lookups for a filesystem.
|
||||
# TYPE node_xfs_block_map_btree_lookups_total counter
|
||||
node_xfs_block_map_btree_lookups_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_map_btree_records_deleted_total Number of block map B-tree records deleted for a filesystem.
|
||||
# TYPE node_xfs_block_map_btree_records_deleted_total counter
|
||||
node_xfs_block_map_btree_records_deleted_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_map_btree_records_inserted_total Number of block map B-tree records inserted for a filesystem.
|
||||
# TYPE node_xfs_block_map_btree_records_inserted_total counter
|
||||
node_xfs_block_map_btree_records_inserted_total{device="sda1"} 0
|
||||
# HELP node_xfs_block_mapping_extent_list_compares_total Number of extent list compares for a filesystem.
|
||||
# TYPE node_xfs_block_mapping_extent_list_compares_total counter
|
||||
node_xfs_block_mapping_extent_list_compares_total{device="sda1"} 0
|
||||
|
|
|
@ -156,24 +156,24 @@ func (c *xfsCollector) updateXFSStats(ch chan<- prometheus.Metric, s *xfs.Stats)
|
|||
value: float64(s.BlockMapping.ExtentListCompares),
|
||||
},
|
||||
{
|
||||
name: "block_mapping_btree_lookups_total",
|
||||
name: "block_map_btree_lookups_total",
|
||||
desc: "Number of block map B-tree lookups for a filesystem.",
|
||||
value: float64(s.AllocationBTree.Lookups),
|
||||
value: float64(s.BlockMapBTree.Lookups),
|
||||
},
|
||||
{
|
||||
name: "block_mapping_btree_compares_total",
|
||||
name: "block_map_btree_compares_total",
|
||||
desc: "Number of block map B-tree compares for a filesystem.",
|
||||
value: float64(s.AllocationBTree.Compares),
|
||||
value: float64(s.BlockMapBTree.Compares),
|
||||
},
|
||||
{
|
||||
name: "block_mapping_btree_records_inserted_total",
|
||||
name: "block_map_btree_records_inserted_total",
|
||||
desc: "Number of block map B-tree records inserted for a filesystem.",
|
||||
value: float64(s.AllocationBTree.RecordsInserted),
|
||||
value: float64(s.BlockMapBTree.RecordsInserted),
|
||||
},
|
||||
{
|
||||
name: "block_mapping_btree_records_deleted_total",
|
||||
name: "block_map_btree_records_deleted_total",
|
||||
desc: "Number of block map B-tree records deleted for a filesystem.",
|
||||
value: float64(s.AllocationBTree.RecordsDeleted),
|
||||
value: float64(s.BlockMapBTree.RecordsDeleted),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue