Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

OpenTelemetry metrics (and the rest of grafeas/voucher) #24

Merged
merged 53 commits into from
Nov 17, 2022

Conversation

thepwagner
Copy link

Synchronize Shopify/voucher to grafeas/voucher:main.

The driver for this change is getting grafeas#68 into the fork that Shopify uses.
I opted to implement that feature and merge main, because once we action grafeas#47 , there is no longer a reason for Shopify to maintain a fork 🎉 .

You should see two types of changes in this diff:

  • Adding metrics
  • Inoffensive logging/release nits that we never backported

thepwagner and others added 30 commits January 4, 2022 11:32
Co-authored-by: Dani Santos <daniele.santos@shopify.com>
ReferenceToProject: support Artifact Registry
We expect you to provide an otel-collector output, and we will speak
http, https, grpc or insecure-grpc to that endpoint.
There's an easy path to use providing scrape-able Prometheus metrics
too, but that is not implemented!

We do not let you provide certificate auth, which might be a thing for
gRPC...

I'm awkwardly reusing the `[statsd]` section of the config file - I
didn't want to introduce a sibling `[stats]` section, but maybe this
should all go into a `[otel]` section to avoid confusion? 🤷
@thepwagner thepwagner requested a review from a team October 20, 2022 12:48
@thepwagner thepwagner self-assigned this Oct 20, 2022
@thepwagner thepwagner requested review from rxbchen and lynnsh and removed request for a team October 20, 2022 12:48
Copy link

@lynnsh lynnsh left a comment

Choose a reason for hiding this comment

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

LGTM, there is just some git merge leftovers left in README.md and TUTORIAL.md.

v2/cmd/voucher_server/README.md Outdated Show resolved Hide resolved
v2/cmd/voucher_server/TUTORIAL.md Outdated Show resolved Hide resolved
v2/suite.go Show resolved Hide resolved
@@ -14,12 +14,7 @@ Make sure that you update the `ejson` or `sops` specific blocks to point to the

## Create secrets

<<<<<<< HEAD
(Deprecated, clair is no longer supported)
Copy link

Choose a reason for hiding this comment

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

Would we want to mention somewhere that clair is no longer supported?

Copy link
Author

Choose a reason for hiding this comment

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

We were OK with removing the mention in grafeas#66 ; so I don't think it's a big issue.

I think it's easy enough to see this being removed - https://github.com/search?q=repo%3Agrafeas%2Fvoucher%20clair&type=code , I don't feel bad not leaving a not that a feature that nobody used is no longer supported 😆 .

@thepwagner thepwagner merged commit 2ef983a into main Nov 17, 2022
@thepwagner thepwagner deleted the sync-grafeas branch November 17, 2022 18:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants