Original metrics results mock_data should be in raw prometheus format
Background
Prometheus data can take different form, depending the query, for this reason we use a normalizeQueryResponseData
function to make the data structure similar to each other.
Goal
Our mock data spec/frontend/monitoring/mock_data.js
such as singleStatMetricsResult
is created manually from the values we would expect from the normalization step, however, we could instead mock a prometheus response.
This would mean we wouldn't have to do updates to the data manually.
Why work on this?
Our data formatting and parsing is being updated so we don't ignore values and so we use prometheus formats as sources of truth.
With all these changes, we want to make sure our mock data stays up to date so our code is stable.
Original Discussion
The following discussion from !34497 (merged) should be addressed:
-
@jivanvl started a discussion: (+2 comments) Question Why do we need this? Part of the contextual menu for testing the CSV export?