Parent: #763
Problem
Pigsty deliberately uses one shared job="minio" label for MinIO/SILO metrics. That is convenient for common dashboards, but the embedded Console currently receives only the VictoriaMetrics URL and job ID. With two MINIO clusters in one VictoriaMetrics tenant, an unscoped Console query can mix both clusters and display incorrect totals, health, drive, or traffic values.
Pigsty file-SD targets already carry a cls label, so the missing piece is to pass the current cluster selector into the Console.
Proposed change
For the embedded SILO Console, render the equivalent of:
MINIO_PROMETHEUS_JOB_ID=minio
MINIO_PROMETHEUS_EXTRA_LABELS='cls="<current-minio-cluster>"'
Keep job="minio" as the product-wide metric family selector and use cls as the tenant/cluster boundary. A separately deployed Console should use the equivalent CONSOLE_PROMETHEUS_JOB_ID and CONSOLE_PROMETHEUS_EXTRA_LABELS variables.
The Console must combine the configured selector with every widget query, including V3 queries and fallback/empty-state checks.
Related Console work:
Acceptance criteria
Parent: #763
Problem
Pigsty deliberately uses one shared
job="minio"label for MinIO/SILO metrics. That is convenient for common dashboards, but the embedded Console currently receives only the VictoriaMetrics URL and job ID. With two MINIO clusters in one VictoriaMetrics tenant, an unscoped Console query can mix both clusters and display incorrect totals, health, drive, or traffic values.Pigsty file-SD targets already carry a
clslabel, so the missing piece is to pass the current cluster selector into the Console.Proposed change
For the embedded SILO Console, render the equivalent of:
Keep
job="minio"as the product-wide metric family selector and useclsas the tenant/cluster boundary. A separately deployed Console should use the equivalentCONSOLE_PROMETHEUS_JOB_IDandCONSOLE_PROMETHEUS_EXTRA_LABELSvariables.The Console must combine the configured selector with every widget query, including V3 queries and fallback/empty-state checks.
Related Console work:
Acceptance criteria
job="minio".cls.