-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add k8sattributes processor to otel collector * Fix monitoring part of kubernetes internals --------- Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
- Loading branch information
1 parent
a0545ab
commit aff0d10
Showing
3 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
charts/datalayer-observer/templates/collector-cluster-role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if index .Values "opentelemetry-operator" "enabled" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: datalayer-collector | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods", "namespaces", "nodes"] | ||
verbs: ["get", "watch", "list"] | ||
- apiGroups: ["apps"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["extensions"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: datalayer-collector | ||
subjects: | ||
- kind: ServiceAccount | ||
name: datalayer-collector-collector | ||
namespace: {{ default .Values.observer.namespace .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: datalayer-collector | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters