Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions charts/openobserve-collector/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,11 @@ rules:
resources:
- events
verbs: ["get", "list", "watch"]
{{- if .Values.rbac.extraRules }}
{{- range .Values.rbac.extraRules }}
- apiGroups: {{ .apiGroups | toJson }}
resources: {{ .resources | toJson }}
verbs: {{ .verbs | toJson }}
{{- end }}
{{- end }}
{{- end }}
23 changes: 23 additions & 0 deletions charts/openobserve-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

# If additional RBAC rules are needed for the collector, they can be added here
# Example use case: To allow the collector to access the custom resources from the third-party API groups
rbac: {}
# rbac:
# extraRules:
# - apiGroups: ["thirdparty.api.group"]
# resources: ["customresourcename"]
# verbs: ["get", "list", "watch"]

labels: {}

# If Opentelemetry operator should be installed with the chart. If you already have the operator installed, set enabled to false. Refer https://opentelemetry.io/docs/kubernetes/operator/ and https://opentelemetry.io/docs/kubernetes/helm/operator/
opentelemetry-operator:
enabled: false
Expand Down Expand Up @@ -80,6 +91,18 @@ agent:
# cpu: 100m
# memory: 128Mi
receivers:
otlp:
protocols:
grpc: {}
http: {}
prometheus:
config:
scrape_configs:
- job_name: "otel-collector"
scrape_interval: 5s
static_configs:
- targets: ["0.0.0.0:8888"]

filelog/std:
include: [/var/log/pods/*/*/*.log]
exclude:
Expand Down