Skip to content

Commit bbe340a

Browse files
committed
cluster-agent: allow to collect coroot.com/* annotations
1 parent 649a290 commit bbe340a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controller/cluster_agent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (r *CorootReconciler) clusterAgentDeployment(cr *corootv1.Coroot) *appsv1.D
132132
"--port=10302",
133133
"--resources=namespaces,nodes,daemonsets,deployments,cronjobs,jobs,persistentvolumeclaims,persistentvolumes,pods,replicasets,services,endpoints,statefulsets,storageclasses,volumeattachments",
134134
"--metric-labels-allowlist=pods=[*]",
135+
"--metric-annotations-allowlist=*=[coroot.com/application-category,coroot.com/custom-application-name]",
135136
},
136137
Resources: corev1.ResourceRequirements{
137138
Requests: cr.Spec.ClusterAgent.Resources.Requests,

0 commit comments

Comments
 (0)