Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output '*kilobytes' metrics to KB #22

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Output '*kilobytes' metrics to KB #22

merged 2 commits into from
Jul 18, 2023

Conversation

RDruon
Copy link
Contributor

@RDruon RDruon commented Jul 18, 2023

Fixes EX-7902

Demo

get_param:

[root@vm-001 ~]# lctl  get_param osd-*.*.kbytesavail
osd-ldiskfs.MGS.kbytesavail=1874028
osd-ldiskfs.testfs-MDT0000.kbytesavail=3388879012
[root@vm-001 ~]# lctl get_param osd-*.*.kbytesfree
osd-ldiskfs.MGS.kbytesfree=1978884
osd-ldiskfs.testfs-MDT0000.kbytesfree=3446861004
[root@vm-001 ~]# lctl get_param osd-*.*.kbytestotal
osd-ldiskfs.MGS.kbytestotal=1980036
osd-ldiskfs.testfs-MDT0000.kbytestotal=3446866632

exporter:

# HELP lustre_available_kilobytes Number of kilobytes readily available in the pool
# TYPE lustre_available_kilobytes gauge
lustre_available_kilobytes{component="mgt",target="MGS"} 1874028 1689664819761
lustre_available_kilobytes{component="mdt",target="testfs-MDT0000"} 3388879012 1689664819761

# HELP lustre_free_kilobytes Number of kilobytes allocated to the pool
# TYPE lustre_free_kilobytes gauge
lustre_free_kilobytes{component="mgt",target="MGS"} 1978884 1689664819761
lustre_free_kilobytes{component="mdt",target="testfs-MDT0000"} 3446861004 1689664819761

# HELP lustre_capacity_kilobytes Capacity of the pool in kilobytes
# TYPE lustre_capacity_kilobytes gauge
lustre_capacity_kilobytes{component="mgt",target="MGS"} 1980036 1689664819761
lustre_capacity_kilobytes{component="mdt",target="testfs-MDT0000"} 3446866632 1689664819761

@RDruon RDruon added the bug Something isn't working label Jul 18, 2023
@RDruon RDruon self-assigned this Jul 18, 2023
@RDruon RDruon requested a review from jgrund July 18, 2023 15:21
@RDruon RDruon marked this pull request as ready for review July 18, 2023 15:34
jgrund
jgrund previously approved these changes Jul 18, 2023
@jgrund jgrund merged commit 7d3e5c2 into main Jul 18, 2023
9 checks passed
@jgrund jgrund deleted the rdruon/EX-7902 branch July 18, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants