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

main: version flag and optional metrics listener #46

Merged
merged 1 commit into from Mar 12, 2024
Merged

main: version flag and optional metrics listener #46

merged 1 commit into from Mar 12, 2024

Conversation

sr
Copy link
Collaborator

@sr sr commented Mar 12, 2024

Mostly because I am FAFO about federating Fly's prometheus.

Version flag:

$ webauthn-oidc-idp -version
webauthn-oidc-idp, version devel (branch: metrics, revision: 497741168f27b872d2df5e002e5ee1b2dc20f96d-modified)
  build user:       root
  build date:       2024-03-12T13:10:20+00:00
  go version:       go1.22.1
  platform:         linux/arm64
  tags:             unknown

Build info metric:

webauthn_oidc_idp_build_info{app="sr-idp-staging", branch="metrics", goarch="amd64", goos="linux", goversion="go1.22.1", host="9a41", instance="7811952b5e5638", job="federate", region="ams", revision="85fc428c8e30de1c78938ffd964769084ee209e4", tags="unknown", version="devel"}

@sr sr requested a review from lstoll March 12, 2024 13:26
@sr
Copy link
Collaborator Author

sr commented Mar 12, 2024

runtime/debug.BuildInfo is nice but also kinda annoying: golang/go#29228 golang/go#50603

@sr sr merged commit 9798459 into main Mar 12, 2024
4 checks passed
@sr sr deleted the metrics branch March 12, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants