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

Extends controller-runtime with new metric #387

Merged
merged 9 commits into from
Oct 7, 2024

Conversation

alexandrealvino
Copy link
Contributor

Extends controller runtime metrics adding prometheus metrics to count cluster static entries failures

Fix issue #278

@@ -42,11 +42,13 @@ import (
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"
k8sMetrics "sigs.k8s.io/controller-runtime/pkg/metrics"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
k8sMetrics "sigs.k8s.io/controller-runtime/pkg/metrics"
k8smetrics "sigs.k8s.io/controller-runtime/pkg/metrics"

@@ -78,6 +80,10 @@ func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(spirev1alpha1.AddToScheme(scheme))

k8sMetrics.Registry.MustRegister(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
k8sMetrics.Registry.MustRegister(
k8smetrics.Registry.MustRegister(

azdagron
azdagron previously approved these changes Oct 1, 2024
go.mod Outdated Show resolved Hide resolved
@azdagron
Copy link
Member

azdagron commented Oct 7, 2024

Thanks for testing this IRL, @kfox1111!

@azdagron azdagron merged commit b010383 into spiffe:main Oct 7, 2024
6 checks passed
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.

4 participants