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

Helper method to bound an ActionSet's "action type" to a fixed set for Prometheus Metrics #2256

Merged
merged 6 commits into from
Aug 25, 2023

Conversation

mellon-collie
Copy link
Contributor

@mellon-collie mellon-collie commented Aug 10, 2023

Change Overview

The PR introduces a simple helper method to bound an ActionSet's "action type" to a fixed set for Prometheus Metrics and avoid cardinality explosions in the Prometheus server. This PR is a WIP until we finalize the inputs we receive from adopters and downstream projects with regards to the set of action types passed.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

Added a new table driven test called: TestGetActionTypeBucket which tests different mappings.

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Aug 10, 2023
@mellon-collie mellon-collie force-pushed the kanister-prometheus-metrics-resolution branch from 0d23528 to 743d6ab Compare August 14, 2023 16:54
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

Please rebase whenever possible

pkg/controller/metrics.go Outdated Show resolved Hide resolved
@mellon-collie mellon-collie force-pushed the kanister-prometheus-metrics-resolution branch from f365d37 to 023af87 Compare August 18, 2023 23:17
@mellon-collie
Copy link
Contributor Author

will fix the commit history post #2247 merge

Base automatically changed from kanister-prometheus-metrics-resolution to master August 25, 2023 01:02
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

Reposting after rebase

pkg/controller/metrics.go Outdated Show resolved Hide resolved
@mellon-collie mellon-collie force-pushed the kanister-prometheus-metric-action-type-helper branch from 5d481d9 to dbc048a Compare August 25, 2023 01:50
@mellon-collie mellon-collie changed the title [WIP] Helper method to bound an ActionSet's "action type" to a fixed set for Prometheus Metrics Helper method to bound an ActionSet's "action type" to a fixed set for Prometheus Metrics Aug 25, 2023
pkg/controller/metrics.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Aug 25, 2023
@mergify mergify bot merged commit 0f06fd7 into master Aug 25, 2023
14 checks passed
Kanister automation moved this from Reviewer approved to Done Aug 25, 2023
@mergify mergify bot deleted the kanister-prometheus-metric-action-type-helper branch August 25, 2023 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants