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

"Drives Free Inodes" widget from resource tag using incorrect prometheus metric "minio_cluster_drive_free_inodes" #3295

Closed
streamvsriver opened this issue Apr 16, 2024 · 0 comments · Fixed by #3296

Comments

@streamvsriver
Copy link
Contributor

NOTE

If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.

Missing metric "Drives Free Inodes" from widget in minio console, as the console widget is using incorrect metric "minio_cluster_drive_free_inodes" which is not exposed in minio.

Expected Behavior

"Drives Free Inodes" widget from the Resource tag should have metric shown up.
Missing metric "Drives Free Inodes" widget should use the metrics "minio_node_drive_free_inodes"

Current Behavior

"Drives Free Inodes" widget shown blank metrics

Possible Solution

Change the metric reference of "minio_cluster_drive_free_inodes" to "minio_node_drive_free_inodes" in

Expr: `minio_cluster_drive_free_inodes{$__query}`,

Steps to Reproduce (for bugs)

  1. Configured console server with external prometheus server source with env CONSOLE_PROMETHEUS_URL and CONSOLE_PROMETHEUS_JOB_ID
  2. Access the console web with log in and navigated to "Administrator" -> "Monitoring" -> "Metrics" -> "Resources" tags
  3. check "Drives Free Inodes" widget that shown no metrics

Context

Tried to integrate external prometheus source for minio console metric page, but noticed the "Drives Free Inodes" not able to show any metrics

Regression

Yes

https://github.com/minio/console/blame/649c3d74b8a64b102a283e2d493ba8d07faf30cc/api/admin_info.go#L778

Your Environment

  • MinIO version used (minio --version): 2024-02-24T17:11:14Z
  • Server setup and configuration: single pool with 4 node, deployed via minio operator 5.0.12
  • Operating System and version (uname -a):
  • Linux minio-preprod-ss-3-a-0 5.14.0-284.11.1.el9_2.x86_64 Profiling endpoints for mcs #1 SMP PREEMPT_DYNAMIC Tue May 9 17:09:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants