Skip to content

Drop dependency on trillian/monitoring #117

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

Merged
merged 3 commits into from
Feb 10, 2025
Merged

Conversation

phbnf
Copy link
Collaborator

@phbnf phbnf commented Feb 10, 2025

Towards #105 and #106

This PR makes use of the prometheus library directly, rather than using trillian/monitoring.

It also introduces the following changes:

  • a new lastSCTIndex metric since SCTs now include an index
  • changes the logid label to origin
  • changes the label ep label to op

# Conflicts:
#	internal/scti/handlers_test.go

# Conflicts:
#	internal/scti/handlers.go
# Conflicts:
#	internal/scti/handlers.go

# Conflicts:
#	internal/scti/handlers.go
@phbnf phbnf requested a review from AlCutter February 10, 2025 17:58
@phbnf phbnf marked this pull request as ready for review February 10, 2025 17:58
reqsCounter monitoring.Counter // origin, ep => value
rspsCounter monitoring.Counter // origin, ep, rc => value
rspLatency monitoring.Histogram // origin, ep, rc => value
knownLogs *prometheus.GaugeVec // origin => value (always 1.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could just remove this one, I suspect?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've left it on purpose: this will allow to build global dashboard with all the log names for instance, if multiple stacks exist. It's a nice way to extract the origin, and protects us from bugs like nan values on some metrics because no request is flying around.

@phbnf phbnf merged commit 85d23bf into transparency-dev:main Feb 10, 2025
7 checks passed
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.

2 participants