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

metrics: split metrics into separate packages #51

Merged
merged 8 commits into from
May 23, 2022

Conversation

willfindlay
Copy link
Contributor

This PR splits the metrics into separate packages to make them easier to work with and reason about. It also adds some convenience helpers to avoid developer error when setting metric labels.

@willfindlay willfindlay force-pushed the pr/willfindlay/refactor-metrics branch 2 times, most recently from af66f14 to a9eb4b3 Compare May 21, 2022 02:38
@willfindlay willfindlay marked this pull request as draft May 23, 2022 13:38
This commit moves error totals into their own package and implements convenience helpers
for incrementing them.

Signed-off-by: William Findlay <[email protected]>
This commit moves op code totals into their own package and implements convenience helpers
for incrementing them.

Signed-off-by: William Findlay <[email protected]>
This commit moves event metrics into their own package.

Signed-off-by: William Findlay <[email protected]>
This commit moves eventcache metrics into their own package and implements convenience
helpers for incrementing them.

Signed-off-by: William Findlay <[email protected]>
This commit moves map size metrics into their own package and implements convenience
helpers for incrementing and setting them.

Signed-off-by: William Findlay <[email protected]>
This commit moves ringbuf metrics into their own package and implements convenience
helpers for incrementing and setting them.

Signed-off-by: William Findlay <[email protected]>
This commit moves process exec metrics into their own package and implements convenience
helpers for incrementing and setting them.

Signed-off-by: William Findlay <[email protected]>
This commit moves kprobe metrics into their own package and implements convenience
helpers for incrementing and setting them.

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/refactor-metrics branch from a9eb4b3 to 62f5b0b Compare May 23, 2022 14:56
@willfindlay willfindlay requested a review from kkourt May 23, 2022 15:06
@willfindlay willfindlay marked this pull request as ready for review May 23, 2022 15:07
@willfindlay willfindlay merged commit bd4aada into cilium:main May 23, 2022
@willfindlay willfindlay deleted the pr/willfindlay/refactor-metrics branch May 23, 2022 15:09
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