-
Notifications
You must be signed in to change notification settings - Fork 24
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
[stacked 3/5] metrics: simplify policy/backend metrics collection interface. #408
Merged
askervin
merged 2 commits into
containers:main
from
klihub:metrics/simplify-policy-interface
Nov 20, 2024
Merged
[stacked 3/5] metrics: simplify policy/backend metrics collection interface. #408
askervin
merged 2 commits into
containers:main
from
klihub:metrics/simplify-policy-interface
Nov 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
klihub
changed the title
[3/4] metrics: simplicy policy/backend metrics collection interface.
[3/5] metrics: simplicy policy/backend metrics collection interface.
Nov 11, 2024
klihub
force-pushed
the
metrics/simplify-policy-interface
branch
from
November 12, 2024 10:46
ea333a0
to
2590ed1
Compare
Isn't this already part of commits 405 and 406? |
This is like some other is this series: effectively a single commit PR, but it is stacked on top of a the previous one, in this case, PR #404. |
klihub
force-pushed
the
metrics/simplify-policy-interface
branch
3 times, most recently
from
November 13, 2024 09:44
89227b2
to
8657a3e
Compare
klihub
changed the title
[3/5] metrics: simplicy policy/backend metrics collection interface.
[3/5] metrics: simplify policy/backend metrics collection interface.
Nov 13, 2024
klihub
changed the title
[3/5] metrics: simplify policy/backend metrics collection interface.
[stack: 3/5] metrics: simplify policy/backend metrics collection interface.
Nov 13, 2024
klihub
changed the title
[stack: 3/5] metrics: simplify policy/backend metrics collection interface.
[stacked 3/5] metrics: simplify policy/backend metrics collection interface.
Nov 13, 2024
klihub
force-pushed
the
metrics/simplify-policy-interface
branch
11 times, most recently
from
November 18, 2024 12:54
2f9a345
to
3a06807
Compare
askervin
approved these changes
Nov 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
klihub
force-pushed
the
metrics/simplify-policy-interface
branch
2 times, most recently
from
November 19, 2024 14:33
4d915e9
to
5e7ffde
Compare
Add a metrics/collectors subpackage. When imported it pulls in and registers the fairly standard buildinfo, process and golang runtime collectors. Turn on the build info collector by default. Signed-off-by: Krisztian Litkey <[email protected]>
Simplify the policy-backend metrics collection interface, reducing it to a single GetMetrics() call and a returned Metrics interface which simply implements the collector- like Describe() and Collect() interfaces. Update policy implementations accordingly. Signed-off-by: Krisztian Litkey <[email protected]>
klihub
force-pushed
the
metrics/simplify-policy-interface
branch
from
November 20, 2024 08:11
5e7ffde
to
8f9b8ed
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes: This PR is stacked on top of #404.
Simplify the policy-backend metrics collection interface, reducing it to a single
GetMetrics()
call and a returnedpolicy.Metrics
interface, which simply implements the native prometheus collector interface withDescribe()
andCollect()
. Update policy implementations accordingly.