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

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

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(

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