Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(otel): 🏗️ otel architecture changes for logs
- Switched OtelCollector from Deployment to DaemonSet - RBAC addition and changes to support logs - Add K8s envs for OtelCollector and Metrics - For internal metrics switched from internal.signoz.io to static scrape config - Integrate Kubelet Metrics in OtelCollector - Integrate K8s Cluster Metrics in OtelCollector Metrics Signed-off-by: Prashant Shahi <prashant@signoz.io>
- Loading branch information
1 parent
655f44c
commit e6e32e5
Showing
7 changed files
with
167 additions
and
60 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "otelCollector.fullname" . }}-{{ include "signoz.namespace" . }} | ||
namespace: {{ include "signoz.namespace" . }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods", "nodes", "endpoints"] | ||
verbs: ["list", "watch"] | ||
- apiGroups: ["apps"] | ||
resources: ["replicasets"] | ||
verbs: ["list", "watch"] | ||
- apiGroups: ["batch"] | ||
resources: ["jobs"] | ||
verbs: ["list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["nodes/proxy"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["nodes/stats", "configmaps", "events"] | ||
verbs: ["create", "get"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
resourceNames: ["{{ include "otelCollector.fullname" . }}"] | ||
verbs: ["get","update"] |
13 changes: 13 additions & 0 deletions
13
charts/signoz/templates/otel-collector/clusterrolebinding.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,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "otelCollector.fullname" . }}-{{ include "signoz.namespace" . }} | ||
namespace: {{ include "signoz.namespace" . }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "otelCollector.fullname" . }}-{{ include "signoz.namespace" . }} | ||
subjects: | ||
- name: {{ include "otelCollector.serviceAccountName" . }} | ||
kind: ServiceAccount | ||
namespace: {{ include "signoz.namespace" . }} |
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