I am a bit confused about metrics naming and numbers. The helper said

# HELP node_btrfs_size_bytes Amount of space *allocated* for a layout/data 
type
# TYPE node_btrfs_size_bytes gauge
node_btrfs_size_bytes{block_group_type="data",mode="single",uuid="4cd95d43-a0f5-4c13-8620-518034fe3472"}
 
3.1138512896e+10
node_btrfs_size_bytes{block_group_type="metadata",mode="dup",uuid="4cd95d43-a0f5-4c13-8620-518034fe3472"}
 
2.147483648e+09
node_btrfs_size_bytes{block_group_type="system",mode="dup",uuid="4cd95d43-a0f5-4c13-8620-518034fe3472"}
 
8.388608e+06

However when you measure FS by  

 btrfs filesystem usage /my/btrfs

Overall:
    Device size: 158.75GiB
    Device allocated:   *33.02GiB*
    Device unallocated: 125.73GiB
    Device missing:      0.00B
    Used:   *29.94GiB*
    Free (estimated): 126.40GiB (min: 63.53GiB)
    Data ratio:       1.00
    Metadata ratio:       2.00
    Global reserve: 132.03MiB (used: 0.00B)


Converting 3.1138512896e+10 bytes to GiB  is  *29.94GiB.*
So what we are measuring, allocation or used space? 
And yes, is there ny change to get allocated space ?  AFAIK this is a 
critical metric  for btrfs, it tend to crash or alert with out of space if 
no allocation is possible. 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/707f761b-e9d6-44df-9698-36514f571029n%40googlegroups.com.

Reply via email to