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 #21

Closed
wants to merge 1 commit into from
Closed

Conversation

RDruon
Copy link
Contributor

@RDruon RDruon commented Jul 18, 2023

Fixes EX-7902

Demo

get_param:

[root@ai400-001 ~]# lctl  get_param osd-*.*.kbytesavail
osd-ldiskfs.MGS.kbytesavail=1874028
osd-ldiskfs.testfs-MDT0000.kbytesavail=3388879012
[root@ai400-001 ~]# lctl get_param osd-*.*.kbytesfree
osd-ldiskfs.MGS.kbytesfree=1978884
osd-ldiskfs.testfs-MDT0000.kbytesfree=3446861004
[root@ai400-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="ai400x2-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="ai400x2-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="ai400x2-MDT0000"} 3446866632 1689664819761

@RDruon RDruon added the bug Something isn't working label Jul 18, 2023
@RDruon RDruon self-assigned this Jul 18, 2023
jgrund
jgrund previously requested changes Jul 18, 2023
Copy link
Member

@jgrund jgrund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

''

@RDruon RDruon requested a review from jgrund July 18, 2023 12:47
@jgrund jgrund dismissed their stale review July 18, 2023 12:48

need re-review

@RDruon
Copy link
Contributor Author

RDruon commented Jul 18, 2023

Closed in favor of #22

@RDruon RDruon closed this Jul 18, 2023
@jgrund jgrund deleted the rdruon/bytes_kilobytes branch July 19, 2023 17: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