xfs: expose correct fields, fix metric names

This commit is contained in:
Matt Layher 2017-10-20 18:41:51 -04:00
parent 6ecd8780d9
commit f9ad88fc03
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94
2 changed files with 20 additions and 20 deletions

View File

@ -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. # 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 # TYPE node_xfs_allocation_btree_records_inserted_total counter
node_xfs_allocation_btree_records_inserted_total{device="sda1"} 0 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. # HELP node_xfs_block_map_btree_compares_total Number of block map B-tree compares for a filesystem.
# TYPE node_xfs_block_mapping_btree_compares_total counter # TYPE node_xfs_block_map_btree_compares_total counter
node_xfs_block_mapping_btree_compares_total{device="sda1"} 0 node_xfs_block_map_btree_compares_total{device="sda1"} 0
# HELP node_xfs_block_mapping_btree_lookups_total Number of block map B-tree lookups for a filesystem. # HELP node_xfs_block_map_btree_lookups_total Number of block map B-tree lookups for a filesystem.
# TYPE node_xfs_block_mapping_btree_lookups_total counter # TYPE node_xfs_block_map_btree_lookups_total counter
node_xfs_block_mapping_btree_lookups_total{device="sda1"} 0 node_xfs_block_map_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. # HELP node_xfs_block_map_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 # TYPE node_xfs_block_map_btree_records_deleted_total counter
node_xfs_block_mapping_btree_records_deleted_total{device="sda1"} 0 node_xfs_block_map_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. # HELP node_xfs_block_map_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 # TYPE node_xfs_block_map_btree_records_inserted_total counter
node_xfs_block_mapping_btree_records_inserted_total{device="sda1"} 0 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. # 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 # TYPE node_xfs_block_mapping_extent_list_compares_total counter
node_xfs_block_mapping_extent_list_compares_total{device="sda1"} 0 node_xfs_block_mapping_extent_list_compares_total{device="sda1"} 0

View File

@ -156,24 +156,24 @@ func (c *xfsCollector) updateXFSStats(ch chan<- prometheus.Metric, s *xfs.Stats)
value: float64(s.BlockMapping.ExtentListCompares), 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.", 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.", 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.", 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.", desc: "Number of block map B-tree records deleted for a filesystem.",
value: float64(s.AllocationBTree.RecordsDeleted), value: float64(s.BlockMapBTree.RecordsDeleted),
}, },
} }