Skip to content
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

TRT-1357: Publish disruption delta metrics #1330

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

dgoodwin
Copy link
Contributor

Query new views in BigQuery which contain the complex logic, whatever is
in those views, we publish a metric for. One of them will need to be
updated as part of the GA date tasks.

Metrics published for the P50/75/95 delta now compared to both 30 days
prior to previous GA, and two weeks prior to two weeks ago.

We'll alert on these to notify ourselves of regressions in either.

@dgoodwin dgoodwin changed the title Publish disruption delta metrics TRT-1357: Publish disruption delta metrics Nov 24, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 24, 2023

@dgoodwin: This pull request references TRT-1357 which is a valid jira issue.

In response to this:

Query new views in BigQuery which contain the complex logic, whatever is
in those views, we publish a metric for. One of them will need to be
updated as part of the GA date tasks.

Metrics published for the P50/75/95 delta now compared to both 30 days
prior to previous GA, and two weeks prior to two weeks ago.

We'll alert on these to notify ourselves of regressions in either.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 24, 2023
@openshift-ci openshift-ci bot requested review from bparees and neisw November 24, 2023 13:42
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 24, 2023
@dgoodwin dgoodwin force-pushed the disruption-metrics branch 2 times, most recently from 32facb7 to 1eeb58a Compare November 27, 2023 12:03
Comment on lines 141 to 147
/* TODO: don't commit this

if err := refreshComponentReadinessMetrics(bqc); err != nil {
log.WithError(err).Error("error refreshing component readiness metrics")
}

*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you committed this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know myself. :) Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a fix.

Comment on lines 16 to 21
generator := disruptionReportGenerator{
client: client.BQ,
viewName: "BackendDisruptionPercentilesDeltaCurrentVsPrevGA",
}

return getReportFromCacheOrGenerate[apitype.DisruptionReport](client.Cache, generator, generator.GenerateReport, apitype.DisruptionReport{})
Copy link
Member

@stbenjam stbenjam Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the caching will work, getReportFromCacheOrGenerate will use the JSON marshalled generator as the cache key, but there's no public fields in generator so it'll probably just marshal to {} (getReportFromCacheORGenerate should probably check for that).

Make viewName public (ViewName)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is just making the ViewName public enough there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, it'll make the cache key {"ViewName": "BackEnd....."} instead of {}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok added, and the cache will error if it sees an empty json struct

Comment on lines 1187 to 1189
if bytes.Equal(cacheKey, []byte("{}")) {
return defaultVal, []error{fmt.Errorf("cache key serialized to an empty json struct, must have public fields")}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this would get noticed, what do you think about panicking like this? #1333

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to remove my version.

Query new views in BigQuery which contain the complex logic, whatever is
in those views, we publish a metric for. One of them will need to be
updated as part of the GA date tasks.

Metrics published for the P50/75/95 delta now compared to both 30 days
prior to previous GA, and two weeks prior to two weeks ago.

Also includes the delta in PercentageAboveZero, which looks to volatile
to alert on now but we'll see if we can get a handle on it.

We'll alert on these to notify ourselves of regressions in either.
Copy link
Contributor

openshift-ci bot commented Nov 27, 2023

@dgoodwin: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@stbenjam
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2023
Copy link
Contributor

openshift-ci bot commented Nov 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dgoodwin, stbenjam

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit a2975ee into openshift:master Nov 27, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants