Skip to content

Commit

Permalink
Add stackdriver output to the Helm Chart (#1040)
Browse files Browse the repository at this point in the history
* fix: add fluentbit stackdriver output #1038

Signed-off-by: Uğurcan Akkök <akkokugurcan@gmail.com>

* doc: update index.md for stackdriver output #1038

Signed-off-by: Uğurcan Akkök <akkokugurcan@gmail.com>

* fix comment for stackdriver in charts

Signed-off-by: Uğurcan Akkök <akkokugurcan@gmail.com>

---------

Signed-off-by: Uğurcan Akkök <akkokugurcan@gmail.com>
  • Loading branch information
UgurcanAkkok committed Jan 15, 2024
1 parent f3a0a52 commit a9bdd93
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions charts/fluent-operator/templates/fluentbit-output-stackdriver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.Kubernetes -}}
{{- if .Values.fluentbit.enable -}}
{{- if .Values.fluentbit.output.stackdriver -}}
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
name: stackdriver
labels:
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/component: logging
spec:
matchRegex: (?:kube|service)\.(.*)
stackdriver:
{{ toYaml .Values.fluentbit.output.stackdriver | indent 4}}
{{- end }}
{{- end }}
{{- end }}

2 changes: 2 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ fluentbit:
#autoKubernetesLabels: on
#tenantIDKey: # String
#tls: {} # *plugins.TLS fluentbit docs
stackdriver: {}
# You can configure the stackdriver configuration here

service:
storage: {}
Expand Down
3 changes: 2 additions & 1 deletion docs/plugins/fluentbit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- [opentelemetry](output/opentelemetry.md)
- [prometheus remote write](output/prometheus-remote-write.md)
- [splunk](output/splunk.md)
- [stackdriver](output/stackdriver.md)
- [stdout](output/stdout.md)
- [syslog](output/syslog.md)
- [tcp](output/tcp.md)
- [tcp](output/tcp.md)

0 comments on commit a9bdd93

Please sign in to comment.