When we use queries combining group_by[cluster], start_date and end_date params with monthly resolution, the data section of OCP compute/volume/memory reports shows incorrect capacity. It seems like it shows the capacity for a single day only instead of the whole month.
Note that the value for the total capacity (in metadata section) seems to be correct.
Steps to reproduce:
- ingest OCP multi sources data
- see the ocp compute report for current month generated using time scope params and group_by cluster:
/v1/reports/openshift/compute/?filter[resolution]=monthly&filter[time_scope_value]=-1&filter[time_scope_units]=month&group_by[cluster]=* "date": "2021-12", "clusters": [ { "cluster": "test_cost_ocp_delta", "values": [ { "date": "2021-12", "cluster": "test_cost_ocp_delta", "usage": { "value": 712.0, "units": "Core-Hours" }, "request": { "value": 712.0, "units": "Core-Hours" }, "limit": { "value": 712.0, "units": "Core-Hours" }, "capacity": { "value": 712.0, "units": "Core-Hours" },
the capacity of the test_cost_ocp_delta cluster is 712.0 Core-Hours
- generate the ocp compute report using monthly resolution, start_date/end_date params and group_by[cluster]:
/v1/reports/openshift/compute/?filter[resolution]=monthly&group_by[cluster]=*&start_date=2021-11-01&end_date=2021-12-08
"date": "2021-12", "clusters": [ { "cluster": "test_cost_ocp_delta", "values": [ { "date": "2021-12", "cluster": "test_cost_ocp_delta", "usage": { "value": 712.0, "units": "Core-Hours" }, "request": { "value": 712.0, "units": "Core-Hours" }, "limit": { "value": 712.0, "units": "Core-Hours" }, "capacity": { "value": 96.0, "units": "Core-Hours"
the capacity of the test_cost_ocp_delta cluster is 96.0 Core-Hours