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

refactor: outlineMetrics implements prometheus.Collector #201

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

sbruens
Copy link

@sbruens sbruens commented Aug 19, 2024

I am changing the outlineMetrics type to not require a prometheus.Registerer. Instead, it now implements the prometheus.Collector interface (in addition to the TCPMetrics and UDPMetrics interfaces), so that main() can create the collector and then register it.

Splitting this out of #200 for easier review.

Copy link

@fortuna fortuna left a comment

Choose a reason for hiding this comment

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

Nice cleanup. I have a minor comment.

cmd/outline-ss-server/metrics.go Show resolved Hide resolved
cmd/outline-ss-server/metrics.go Outdated Show resolved Hide resolved
cmd/outline-ss-server/metrics.go Show resolved Hide resolved
@sbruens sbruens requested a review from fortuna August 21, 2024 22:04
@sbruens sbruens merged commit ce562d1 into master Aug 28, 2024
5 checks passed
@sbruens sbruens deleted the sbruens/prom-collectors branch August 28, 2024 20:32
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