FEAT(otel): enable Target Allocator for metrics

- Enable Target Allocator with consistent-hashing strategy
- Configure prometheus receiver to use Target Allocator
- Add RBAC permissions for secrets and events
- Use prometheusCR for ServiceMonitor/PodMonitor discovery
This commit is contained in:
2026-01-09 23:30:41 +09:00
parent 02faf93555
commit 1fdbb5e1dd
2 changed files with 36 additions and 10 deletions

View File

@@ -59,6 +59,14 @@ rules:
- apiGroups: [""]
resources: ["pods", "nodes", "services", "endpoints", "namespaces"]
verbs: ["get", "watch", "list"]
# Secrets for TLS certificates referenced by ServiceMonitors
- apiGroups: [""]
resources: ["secrets", "configmaps"]
verbs: ["get", "watch", "list"]
# Events for status reporting
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"]
verbs: ["get", "watch", "list"]