console icon indicating copy to clipboard operation
console copied to clipboard

Prometheus range BETWEEN_1024B_AND_1_MB inconsistent with web console looking for BETWEEN_1024_B_AND_1_MB

Open barryp opened this issue 11 months ago • 0 comments

NOTE

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

The Web console, under Monitoring/Metrics/Object Size Distribution shows 0 for "Between 1024B and 1MB" while looking directly in Prometheus I see the expected value

minio_cluster_objects_size_distribution{instance="storage-1:9000", job="my-storage", range="BETWEEN_1024B_AND_1_MB", server="storage-1:9000"}
	29925

Expected Behavior

The web console should display 29925

Current Behavior

The web console displays 0

Possible Solution

Commit #dc13122531f4eae4cc4aaf591e9db26f9940dfeb added the new range

BETWEEN_1024B_AND_1_MB

which is inconsistent with all the other ranges in that there is no underscore between the number '1024' and the unit 'B'

in the console it seems to be looking for

BETWEEN_1024_B_AND_1_MB

I'd think either the console has to change to look for what minio is reporting, or minio should change for consistency and to report what the console is expecting.

Steps to Reproduce (for bugs)

  1. Upload a file sized greater then 1024 bytes and < 1 megabyte
  2. Check the web console and see a 0 value on the "Between 1024B and 1MB" bin

Context

Just checking out server usage

Regression

Your Environment

  • Version used (minio --version): minio version RELEASE.2024-03-05T04-48-44Z (commit-id=1b5f28e99b145b0e3a5d99d1801a9b5cbfbdb091)
  • Server setup and configuration: 3 node cluster
  • Operating System and version (uname -a): Linux storage-1 5.15.0-97-generic

barryp avatar Mar 07 '24 19:03 barryp