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

[stacked 2/5] metrics: add de-facto standard collectors. #404

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

klihub
Copy link
Collaborator

@klihub klihub commented Nov 11, 2024

Notes: This PR is stacked on top of #403.

Add a metrics/collectors subpackage to register the fairly standard buildinfo, process and golang runtime collectors. Turn on the buildinfo collector by default.

@klihub klihub force-pushed the metrics/standard-collectors branch 2 times, most recently from df856a6 to 095de2c Compare November 11, 2024 22:56
@klihub klihub changed the title [2/4]: metrics: add de-facto standard collectors. [2/5]: metrics: add de-facto standard collectors. Nov 11, 2024
Copy link

@pfl pfl left a comment

Choose a reason for hiding this comment

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

Apparently only the last commit was different from 403.

@klihub
Copy link
Collaborator Author

klihub commented Nov 12, 2024

Apparently only the last commit was different from 403.

Yes, this is effectively a single-commit PR, it's just stacked on top of #403.

@klihub klihub force-pushed the metrics/standard-collectors branch 4 times, most recently from 0ce588f to be87761 Compare November 13, 2024 09:45
@klihub klihub marked this pull request as ready for review November 13, 2024 13:29
@klihub klihub changed the title [2/5]: metrics: add de-facto standard collectors. [stack: 2/5]: metrics: add de-facto standard collectors. Nov 13, 2024
@klihub klihub changed the title [stack: 2/5]: metrics: add de-facto standard collectors. [stacked 2/5]: metrics: add de-facto standard collectors. Nov 13, 2024
@klihub klihub changed the title [stacked 2/5]: metrics: add de-facto standard collectors. [stacked 2/5] metrics: add de-facto standard collectors. Nov 13, 2024
@klihub klihub force-pushed the metrics/standard-collectors branch 9 times, most recently from 60cd32e to cfded32 Compare November 17, 2024 17:53
Rework our metrics collector registry to take care of most
of the necessary bits for metrics registration, collection
and gathering. Use the prometheus-provided namespacing and
subsystems to put all generated metrics under a prefix and
provide additional grouping.

Signed-off-by: Krisztian Litkey <[email protected]>
Update cgroupstats collector for the reworked metrics registry.
Split out automatic registration to a register subpackage.

Signed-off-by: Krisztian Litkey <[email protected]>
Remove the old resmgr-triggered polling of policy metrics
and the old resmgr-level polling policy metrics collector.
Implement policy metrics collection in the policy package
itself.

Signed-off-by: Krisztian Litkey <[email protected]>
Remove the old opencensus-based prometheus exporter. Rework
prometheus exporting using our update metrics registry and
a promhttp /metrics-handler.

Signed-off-by: Krisztian Litkey <[email protected]>
Add configuration bits for controlling which metrics are
collected. Enable collection of policy metrics by default.

Signed-off-by: Krisztian Litkey <[email protected]>
Remove obsolete and unused option entries. Give a warning about
using the now-obsolete '-metrics-interval' argument. It's used
unconditionally by our existing Helm charts, so we'll phase it
out a bit more gently.

Signed-off-by: Krisztian Litkey <[email protected]>
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]>
@klihub klihub force-pushed the metrics/standard-collectors branch 2 times, most recently from 3a06807 to 0dcfab6 Compare November 18, 2024 12:54
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