Skip to content

Commit

Permalink
kube-state-metrics: enable endpoint metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Jan 30, 2025
1 parent 2550782 commit 90da038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/cluster_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controller

import (
"fmt"

corootv1 "github.io/coroot/operator/api/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -129,7 +130,7 @@ func (r *CorootReconciler) clusterAgentDeployment(cr *corootv1.Coroot) *appsv1.D
Args: []string{
"--host=127.0.0.1",
"--port=10302",
"--resources=namespaces,nodes,daemonsets,deployments,cronjobs,jobs,persistentvolumeclaims,persistentvolumes,pods,replicasets,services,statefulsets,storageclasses,volumeattachments",
"--resources=namespaces,nodes,daemonsets,deployments,cronjobs,jobs,persistentvolumeclaims,persistentvolumes,pods,replicasets,services,endpoints,statefulsets,storageclasses,volumeattachments",
"--metric-labels-allowlist=pods=[*]",
},
Resources: corev1.ResourceRequirements{
Expand Down

0 comments on commit 90da038

Please sign in to comment.