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
Bug fix for data consumption prometheus query change #2509
Bug fix for data consumption prometheus query change #2509
Conversation
@cloudbehl @rawagner @anmolsachan @jeniawhite please review |
totalLogicalUsage: 'sum(NooBaa_providers_logical_size)', | ||
}, | ||
[ObjectServiceDashboardQuery.PROVIDERS_BY_EGRESS]: { | ||
egress: 'NooBaa_providers_bandwidth_read_size + NooBaa_providers_bandwidth_write_size', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change this query to sorting out and all the queries to top 5 in order to be consistent with persistent dashboard
return [{ name: `Total Reads ${totalReads}` }, { name: `Total Writes ${totalWrites}` }]; | ||
export const getLegendData: GetLegendData = (response, humanize) => { | ||
const value = _.get(response, 'data.result[0].value[1]', null); | ||
return value ? humanize(Number(value)).string : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to convert to number humanize takes care of it.
return value ? humanize(Number(value)).string : ''; | |
return value ? humanize(value).string : ''; |
c10974a
to
14809ab
Compare
e12f873
to
3362591
Compare
- granularized the previous metrics - extra calculations of the UI are now handled by these queries [hence optimizing the performance on UI front] Signed-off-by: Afreen Rahman <afrahman@redhat.com>
3362591
to
2a9f662
Compare
@cloudbehl please review it back |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can you change it everywhere, to differentiate between function name and the types.
name: string; | ||
unit: string; | ||
yOriginal: number; | ||
type GetChartData = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I thought capitalizing would suffice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also its not a props type, rather a function type definition.
We can rename to GetChartDataType
if its confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but types are capitalized and function name are camel case, which I know the pattern in general
name?: string, | ||
) => ChartDataPoint[]; | ||
|
||
type GetDataConsumptionChartData = ( |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
name: string; | ||
unit: string; | ||
yOriginal: number; | ||
type GetChartData = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I thought capitalizing would suffice
- Additon of pf4 properties for bar charts - Tick values fix - Addition of top margin property in the card body Signed-off-by: Afreen Rahman <afrahman@redhat.com>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afreen23, cloudbehl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test e2e-aws-console |
Bug
The data consumption card searches for stale metrics and always shows
No Prometheus Data Points
Fix
Updated the card with all the latest metrics
Prometheus Queries Overview
Subsequent Changes in the UI
Prometheus response
for the current metrics , the subsequent individual functions needs to be removed.People
Thanx @anmolsachan for reviewing and @jeniawhite for helping with testing and providing the actual metrics for all of the cards.
Screenshots