-
Notifications
You must be signed in to change notification settings - Fork 84
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
Include repo url in committime #1146
Include repo url in committime #1146
Conversation
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
0664f95
to
cc4c8b2
Compare
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Signed-off-by: Eric Sauer <[email protected]>
Signed-off-by: Eric Sauer <[email protected]>
cc4c8b2
to
c228caf
Compare
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
e56f8c6
to
be1d041
Compare
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
@mpryc @weshayutin @mateusoliveira43 @KevinMGranger thinking about this a bit more... I think what would be more useful than just the repo url would be the direct link to the commit (e.g. 7810f2a). This information looks to be provided in the api response we get back from the git providers already, so it would be easy to extract. The question is, where do "store" it. Do we add a new field to CommitMetric for a "commit_link"? do we overload "repo_url" in some way? Thoughts? |
I started going down this path today, and hit a little snag. https://github.com/dora-metrics/pelorus/blob/master/exporters/committime/collector_base.py#L396-L398 It looks as if today, we ONLY cache the commit_timestamp rather than the entire metric. As a result, on exporter start, we get the correct metric the first time, as it is not yet cached, and calls out to github, but on scrape, the metric appears cached, but information is missing. Are we open to changing this? |
…t for commit_link Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
Signed-off-by: Eric Sauer <[email protected]>
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
5cb5045
to
3d34813
Compare
Test images available! 🧪🚀 To test operator with them, run
To clean up environment afterwards, run
|
@etsauer: The following test failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
/lgtm |
/approve |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgruver 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 |
Linked Issues
resolves #1089
Description
This change adds a new
repo_url
label to the committime metric across all providers. It ensures that when we capture a commit time, we also capture the source code repo URL for that commit. This will help us to show users where their metrics are coming from and help users validate the metrics we collect when there are questions about how we're getting our data.Testing Instructions
Deploy the operator from the PR builds above.
Set up a pelorus instance with the following comittime exporter types:
Generate data by running through the examples here: https://pelorus.readthedocs.io/en/v2.0.12/GettingStarted/configuration/ExporterCommittime/#example-workflow-for-an-openshift-binary-build
Check in Prometheus for
commit_timestamp
entries. You should now see metrics that look like this: