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

chore: add some metrics #143

Merged
merged 2 commits into from
Dec 29, 2020
Merged

chore: add some metrics #143

merged 2 commits into from
Dec 29, 2020

Conversation

tokers
Copy link
Contributor

@tokers tokers commented Dec 29, 2020

Abstract a metrics collector metrics.Collector and implement it with a Prometheus collector.

The collector is created in cmd/ingress.Run, which will be moved to the ingress controller after we have an unified ingress controller object.

Metrics are not used except the Collector.ResetLeader (which is always true since we don't use the leader election), others will be used during the refactoring.

@gxthrj
Copy link
Contributor

gxthrj commented Dec 29, 2020

CI failed.

@tokers
Copy link
Contributor Author

tokers commented Dec 29, 2020

Fixed.

@tokers tokers merged commit e0658f4 into apache:master Dec 29, 2020
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.

3 participants