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

fix: export metrics for checks in kubernetes resources #2455

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

yashmehrotra
Copy link
Member

Fixes: #2445

// Exec runs the actions specified and returns the results, without exporting any metrics
func Exec(ctx *context.Context) ([]*pkg.CheckResult, error) {
// Exec runs the actions specified and returns the results, without saving artifacts
func Exec(ctx *context.Context, exportMetrics bool) ([]*pkg.CheckResult, error) {
Copy link
Member Author

@yashmehrotra yashmehrotra Feb 24, 2025

Choose a reason for hiding this comment

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

@moshloop @adityathebe
This function is used by topology run and kubernetes resource check, was the reason to not export metrics only for topology run to not export metrics if the checks had it defined ?

Copy link
Member

Choose a reason for hiding this comment

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

I think in both cases if a custom metric is defined it should be exported - but we shouldn't export the standard check metrics

@moshloop moshloop merged commit de62132 into master Feb 25, 2025
16 checks passed
@moshloop moshloop deleted the fix-export-k8s-rc branch February 25, 2025 16:10
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.

Custom metrics in http check don't work in kubernetesResource
2 participants