From adaf603bc2fdf0bdffc5220415f4ae90f4bef9aa Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 29 Aug 2024 12:46:46 +0200 Subject: [PATCH] Add fluent-bit and VictoriaLogs (#305) ![Screenshot 2024-08-28 at 15-10-20 Explore - vlog-generic - Grafana](https://github.com/user-attachments/assets/4ba926d3-fb56-411b-88d5-a00d5d17b3dc) --------- Signed-off-by: Andrei Kvapil --- packages/extra/monitoring/Chart.yaml | 2 +- packages/extra/monitoring/Makefile | 2 +- packages/extra/monitoring/README.md | 1 + .../monitoring/templates/grafana/grafana.yaml | 23 + .../templates/oncall/oncall-release.yaml | 6 +- .../templates/vlogs/grafana-datasource.yaml | 15 + .../monitoring/templates/vlogs/vlogs.yaml | 15 + .../templates/vm/grafana-datasource.yaml | 4 +- packages/extra/monitoring/values.schema.json | 8 + packages/extra/monitoring/values.yaml | 8 + packages/system/monitoring/Makefile | 4 + .../monitoring/charts/fluent-bit/.helmignore | 23 + .../monitoring/charts/fluent-bit/Chart.yaml | 27 + .../monitoring/charts/fluent-bit/README.md | 57 + .../charts/fluent-bit/ci/ci-values.yaml | 7 + .../fluent-bit/dashboards/fluent-bit.json | 1565 + .../charts/fluent-bit/templates/NOTES.txt | 6 + .../charts/fluent-bit/templates/_helpers.tpl | 138 + .../charts/fluent-bit/templates/_pod.tpl | 155 + .../fluent-bit/templates/clusterrole.yaml | 46 + .../templates/clusterrolebinding.yaml | 16 + .../templates/configmap-dashboards.yaml | 21 + .../templates/configmap-luascripts.yaml | 13 + .../fluent-bit/templates/configmap.yaml | 25 + .../fluent-bit/templates/daemonset.yaml | 48 + .../fluent-bit/templates/deployment.yaml | 51 + .../charts/fluent-bit/templates/hpa.yaml | 40 + .../charts/fluent-bit/templates/ingress.yaml | 65 + .../fluent-bit/templates/networkpolicy.yaml | 23 + .../charts/fluent-bit/templates/pdb.yaml | 21 + .../fluent-bit/templates/prometheusrule.yaml | 18 + .../charts/fluent-bit/templates/psp.yaml | 42 + .../charts/fluent-bit/templates/scc.yaml | 41 + .../charts/fluent-bit/templates/service.yaml | 57 + .../fluent-bit/templates/serviceaccount.yaml | 13 + .../fluent-bit/templates/servicemonitor.yaml | 51 + .../templates/tests/test-connection.yaml | 26 + .../charts/fluent-bit/templates/vpa.yaml | 39 + .../monitoring/charts/fluent-bit/values.yaml | 511 + .../charts/kube-state-metrics/Chart.yaml | 4 +- .../kube-state-metrics/templates/_helpers.tpl | 2 +- .../templates/deployment.yaml | 80 +- .../kube-state-metrics/templates/service.yaml | 4 + .../templates/serviceaccount.yaml | 3 + .../templates/servicemonitor.yaml | 80 +- .../charts/kube-state-metrics/values.yaml | 128 +- .../charts/metrics-server/CHANGELOG.md | 149 + .../charts/metrics-server/Chart.yaml | 12 +- .../charts/metrics-server/README.md | 16 +- .../charts/metrics-server/RELEASE.md | 1 + .../metrics-server/templates/deployment.yaml | 13 +- .../charts/metrics-server/values.yaml | 19 +- .../prometheus-node-exporter/Chart.yaml | 4 +- .../ci/common-labels-values.yaml | 4 + .../ci/default-values.yaml | 1 + .../ci/pod-labels-values.yaml | 4 + .../ci/service-labels-values.yaml | 5 + .../ci/serviceport-values.yaml | 3 + .../templates/_helpers.tpl | 21 +- .../templates/daemonset.yaml | 80 +- .../templates/service.yaml | 11 +- .../templates/serviceaccount.yaml | 1 + .../prometheus-node-exporter/values.yaml | 109 +- packages/system/monitoring/values.yaml | 51 + .../system/victoria-metrics-operator/Makefile | 2 +- .../prometheus-operator-crds/Chart.lock | 6 + .../prometheus-operator-crds/Chart.yaml | 8 +- .../charts/prometheus-operator-crds/README.md | 6 + .../charts/crds/Chart.yaml | 3 + .../crds/templates/crd-podmonitors.yaml | 1249 + .../charts/crds/templates/crd-probes.yaml | 1217 + .../crds}/templates/crd-prometheusrules.yaml | 66 +- .../crds/templates/crd-servicemonitors.yaml | 1277 + .../prometheus-operator-crds/ci/lint.sh | 15 + .../hack/update_crds.sh | 21 +- .../templates/crd-podmonitors.yaml | 688 - .../templates/crd-probes.yaml | 730 - .../templates/crd-servicemonitors.yaml | 718 - .../prometheus-operator-crds/values.yaml | 3 +- .../victoria-metrics-operator/CHANGELOG.md | 467 +- .../victoria-metrics-operator/Chart.lock | 6 + .../victoria-metrics-operator/Chart.yaml | 23 +- .../victoria-metrics-operator/README.md | 88 +- .../README.md.gotmpl | 36 +- .../RELEASE_NOTES.md | 9 +- .../victoria-metrics-common/.helmignore | 22 + .../victoria-metrics-common/CHANGELOG.md | 52 + .../charts/victoria-metrics-common/Chart.lock | 3 + .../charts/victoria-metrics-common/Chart.yaml | 29 + .../victoria-metrics-common/RELEASE_NOTES.md | 9 + .../templates/_enterprise.tpl | 61 + .../templates/_image.tpl | 17 + .../templates/_ingress.tpl | 8 + .../templates/_pod.tpl | 111 + .../charts/victoria-metrics-operator/crd.yaml | 30869 ++++++++++++++++ .../templates/_helpers.tpl | 56 +- .../templates/certmanager.yaml | 57 - .../templates/cluster_role.yaml | 523 +- .../templates/crd.yaml | 18243 +-------- .../templates/crd_clusterrole.yaml | 66 + .../templates/deployment.yaml | 130 +- .../templates/extra-objects.yaml | 4 + .../templates/pdb.yaml | 26 +- .../templates/psp.yaml | 87 - .../templates/role.yaml | 212 +- .../templates/service.yaml | 42 +- .../templates/service_account.yaml | 2 +- .../templates/service_scrape.yaml | 39 +- .../templates/uninstall_hook.yaml | 71 +- .../templates/webhook.yaml | 299 +- .../victoria-metrics-operator/values.yaml | 94 +- 111 files changed, 40201 insertions(+), 21607 deletions(-) create mode 100644 packages/extra/monitoring/templates/vlogs/grafana-datasource.yaml create mode 100644 packages/extra/monitoring/templates/vlogs/vlogs.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/.helmignore create mode 100644 packages/system/monitoring/charts/fluent-bit/Chart.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/README.md create mode 100644 packages/system/monitoring/charts/fluent-bit/ci/ci-values.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/dashboards/fluent-bit.json create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/NOTES.txt create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/_helpers.tpl create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/_pod.tpl create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/clusterrole.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/clusterrolebinding.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/configmap-dashboards.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/configmap-luascripts.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/configmap.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/daemonset.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/deployment.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/hpa.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/ingress.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/networkpolicy.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/pdb.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/prometheusrule.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/psp.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/scc.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/service.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/serviceaccount.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/servicemonitor.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/tests/test-connection.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/templates/vpa.yaml create mode 100644 packages/system/monitoring/charts/fluent-bit/values.yaml create mode 100644 packages/system/monitoring/charts/metrics-server/CHANGELOG.md create mode 100644 packages/system/monitoring/charts/metrics-server/RELEASE.md create mode 100644 packages/system/monitoring/charts/prometheus-node-exporter/ci/common-labels-values.yaml create mode 100644 packages/system/monitoring/charts/prometheus-node-exporter/ci/default-values.yaml create mode 100644 packages/system/monitoring/charts/prometheus-node-exporter/ci/pod-labels-values.yaml create mode 100644 packages/system/monitoring/charts/prometheus-node-exporter/ci/service-labels-values.yaml create mode 100644 packages/system/monitoring/charts/prometheus-node-exporter/ci/serviceport-values.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/Chart.lock create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/charts/crds/Chart.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/charts/crds/templates/crd-podmonitors.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/charts/crds/templates/crd-probes.yaml rename packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/{ => charts/crds}/templates/crd-prometheusrules.yaml (60%) create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/charts/crds/templates/crd-servicemonitors.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/ci/lint.sh delete mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/templates/crd-podmonitors.yaml delete mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/templates/crd-probes.yaml delete mode 100644 packages/system/victoria-metrics-operator/charts/prometheus-operator-crds/templates/crd-servicemonitors.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/Chart.lock create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/.helmignore create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/CHANGELOG.md create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/Chart.lock create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/Chart.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/RELEASE_NOTES.md create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/templates/_enterprise.tpl create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/templates/_image.tpl create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/templates/_ingress.tpl create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/charts/victoria-metrics-common/templates/_pod.tpl create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/crd.yaml delete mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/templates/certmanager.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/templates/crd_clusterrole.yaml create mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/templates/extra-objects.yaml delete mode 100644 packages/system/victoria-metrics-operator/charts/victoria-metrics-operator/templates/psp.yaml diff --git a/packages/extra/monitoring/Chart.yaml b/packages/extra/monitoring/Chart.yaml index 7c35e0c9..93d238a1 100644 --- a/packages/extra/monitoring/Chart.yaml +++ b/packages/extra/monitoring/Chart.yaml @@ -3,4 +3,4 @@ name: monitoring description: Monitoring and observability stack icon: /logos/monitoring.svg type: application -version: 1.3.0 +version: 1.4.0 diff --git a/packages/extra/monitoring/Makefile b/packages/extra/monitoring/Makefile index 38796029..8f417e8a 100644 --- a/packages/extra/monitoring/Makefile +++ b/packages/extra/monitoring/Makefile @@ -5,6 +5,6 @@ include ../../../scripts/package.mk generate: readme-generator -v values.yaml -s values.schema.json.tmp -r README.md cat values.schema.json.tmp | \ - jq '.properties.metricsStorages.items.type = "object"' \ + jq '.properties.metricsStorages.items.type = "object" | .properties.logsStorages.items.type = "object"' \ > values.schema.json rm -f values.schema.json.tmp diff --git a/packages/extra/monitoring/README.md b/packages/extra/monitoring/README.md index 42d68d28..a5f85901 100644 --- a/packages/extra/monitoring/README.md +++ b/packages/extra/monitoring/README.md @@ -8,4 +8,5 @@ | ----------------- | --------------------------------------------------------------------------------------------------------- | ------- | | `host` | The hostname used to access the grafana externally (defaults to 'grafana' subdomain for the tenant host). | `""` | | `metricsStorages` | Configuration of metrics storage instances | `[]` | +| `logsStorages` | Configuration of logs storage instances | `[]` | | `oncall.enabled` | Enable Grafana OnCall | `false` | diff --git a/packages/extra/monitoring/templates/grafana/grafana.yaml b/packages/extra/monitoring/templates/grafana/grafana.yaml index 7b3e5271..a4ae5f33 100644 --- a/packages/extra/monitoring/templates/grafana/grafana.yaml +++ b/packages/extra/monitoring/templates/grafana/grafana.yaml @@ -26,11 +26,34 @@ spec: security: admin_user: user admin_password: ${GF_PASSWORD} + plugins: + allow_loading_unsigned_plugins: "victorialogs-datasource" deployment: spec: replicas: 2 template: spec: + initContainers: + - name: "load-vm-ds-plugin" + image: "curlimages/curl:7.85.0" + command: [ "/bin/sh" ] + workingDir: "/var/lib/grafana" + securityContext: + runAsUser: 10001 + runAsNonRoot: true + runAsGroup: 10001 + args: + - "-c" + - | + set -ex + mkdir -p /var/lib/grafana/plugins/ + ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victorialogs-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) + curl -L https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/$ver/victorialogs-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vl-plugin.tar.gz + tar -xf /var/lib/grafana/plugins/vl-plugin.tar.gz -C /var/lib/grafana/plugins/ + rm /var/lib/grafana/plugins/vl-plugin.tar.gz + volumeMounts: + - name: grafana-data + mountPath: /var/lib/grafana containers: - name: grafana image: grafana/grafana:10.1.0 diff --git a/packages/extra/monitoring/templates/oncall/oncall-release.yaml b/packages/extra/monitoring/templates/oncall/oncall-release.yaml index 7f7ede82..7796e1a7 100644 --- a/packages/extra/monitoring/templates/oncall/oncall-release.yaml +++ b/packages/extra/monitoring/templates/oncall/oncall-release.yaml @@ -15,9 +15,9 @@ spec: reconcileStrategy: Revision sourceRef: kind: HelmRepository - name: cozystack-extra - namespace: cozy-public - version: 0.1.0 + name: cozystack-system + namespace: cozy-system + version: '*' interval: 1m0s timeout: 5m0s values: diff --git a/packages/extra/monitoring/templates/vlogs/grafana-datasource.yaml b/packages/extra/monitoring/templates/vlogs/grafana-datasource.yaml new file mode 100644 index 00000000..455f3dbd --- /dev/null +++ b/packages/extra/monitoring/templates/vlogs/grafana-datasource.yaml @@ -0,0 +1,15 @@ +{{- range .Values.logsStorages }} +apiVersion: grafana.integreatly.org/v1beta1 +kind: GrafanaDatasource +metadata: + name: vlogs-{{ .name }} +spec: + datasource: + access: proxy + type: victorialogs-datasource + name: vlogs-{{ .name }} + url: http://vlogs-{{ .name }}.{{ $.Release.Namespace }}.svc:9428 + instanceSelector: + matchLabels: + dashboards: grafana +{{- end }} diff --git a/packages/extra/monitoring/templates/vlogs/vlogs.yaml b/packages/extra/monitoring/templates/vlogs/vlogs.yaml new file mode 100644 index 00000000..331a55e0 --- /dev/null +++ b/packages/extra/monitoring/templates/vlogs/vlogs.yaml @@ -0,0 +1,15 @@ +{{- range .Values.logsStorages }} +apiVersion: operator.victoriametrics.com/v1beta1 +kind: VLogs +metadata: + name: {{ .name }} +spec: + storage: + resources: + requests: + storage: {{ .storage }} + storageClassName: {{ .storageClassName }} + accessModes: [ReadWriteOnce] + retentionPeriod: "{{ .retentionPeriod }}" + removePvcAfterDelete: true +{{- end }} diff --git a/packages/extra/monitoring/templates/vm/grafana-datasource.yaml b/packages/extra/monitoring/templates/vm/grafana-datasource.yaml index 13a64301..346baad5 100644 --- a/packages/extra/monitoring/templates/vm/grafana-datasource.yaml +++ b/packages/extra/monitoring/templates/vm/grafana-datasource.yaml @@ -4,13 +4,13 @@ apiVersion: grafana.integreatly.org/v1beta1 kind: GrafanaDatasource metadata: - name: {{ .name }} + name: vm-{{ .name }} spec: instanceSelector: matchLabels: dashboards: grafana datasource: - name: {{ .name }} + name: vm-{{ .name }} type: prometheus access: proxy url: http://vmselect-{{ .name }}.{{ $.Release.Namespace }}.svc:8481/select/0/prometheus/ diff --git a/packages/extra/monitoring/values.schema.json b/packages/extra/monitoring/values.schema.json index 0cacfcf1..eadf8d68 100644 --- a/packages/extra/monitoring/values.schema.json +++ b/packages/extra/monitoring/values.schema.json @@ -15,6 +15,14 @@ "type": "object" } }, + "logsStorages": { + "type": "array", + "description": "Configuration of logs storage instances", + "default": "[]", + "items": { + "type": "object" + } + }, "oncall": { "type": "object", "properties": { diff --git a/packages/extra/monitoring/values.yaml b/packages/extra/monitoring/values.yaml index 58119abf..6353fef4 100644 --- a/packages/extra/monitoring/values.yaml +++ b/packages/extra/monitoring/values.yaml @@ -17,6 +17,14 @@ metricsStorages: storage: 10Gi storageClassName: "" +## @param logsStorages [array] Configuration of logs storage instances +## +logsStorages: +- name: generic + retentionPeriod: "1" + storage: 10Gi + storageClassName: replicated + ## @param oncall.enabled Enable Grafana OnCall ## oncall: diff --git a/packages/system/monitoring/Makefile b/packages/system/monitoring/Makefile index cfd2701a..b0425ded 100644 --- a/packages/system/monitoring/Makefile +++ b/packages/system/monitoring/Makefile @@ -15,3 +15,7 @@ update: helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/ helm repo update metrics-server helm pull metrics-server/metrics-server --untar --untardir charts + # Fluent-bit + helm repo add fluent https://fluent.github.io/helm-charts + helm repo update fluent + helm pull fluent/fluent-bit --untar --untardir charts diff --git a/packages/system/monitoring/charts/fluent-bit/.helmignore b/packages/system/monitoring/charts/fluent-bit/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/packages/system/monitoring/charts/fluent-bit/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/packages/system/monitoring/charts/fluent-bit/Chart.yaml b/packages/system/monitoring/charts/fluent-bit/Chart.yaml new file mode 100644 index 00000000..a9a0decd --- /dev/null +++ b/packages/system/monitoring/charts/fluent-bit/Chart.yaml @@ -0,0 +1,27 @@ +annotations: + artifacthub.io/changes: | + - kind: changed + description: "Updated Fluent Bit OCI image to v3.1.6." +apiVersion: v1 +appVersion: 3.1.6 +description: Fast and lightweight log processor and forwarder or Linux, OSX and BSD + family operating systems. +home: https://fluentbit.io/ +icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg +keywords: +- logging +- fluent-bit +- fluentd +maintainers: +- email: eduardo@calyptia.com + name: edsiper +- email: naseem@transit.app + name: naseemkullah +- email: towmeykaw@gmail.com + name: Towmeykaw +- email: steve.hipwell@gmail.com + name: stevehipwell +name: fluent-bit +sources: +- https://github.com/fluent/fluent-bit/ +version: 0.47.7 diff --git a/packages/system/monitoring/charts/fluent-bit/README.md b/packages/system/monitoring/charts/fluent-bit/README.md new file mode 100644 index 00000000..6920d3d7 --- /dev/null +++ b/packages/system/monitoring/charts/fluent-bit/README.md @@ -0,0 +1,57 @@ +# Fluent Bit Helm chart + +[Fluent Bit](https://fluentbit.io) is a fast and lightweight log processor and forwarder or Linux, OSX and BSD family operating systems. + +## Installation + +To add the `fluent` helm repo, run: + +```sh +helm repo add fluent https://fluent.github.io/helm-charts +``` + +To install a release named `fluent-bit`, run: + +```sh +helm install fluent-bit fluent/fluent-bit +``` + +## Chart values + +```sh +helm show values fluent/fluent-bit +``` + +## Using Lua scripts +Fluent Bit allows us to build filter to modify the incoming records using custom [Lua scripts.](https://docs.fluentbit.io/manual/pipeline/filters/lua) + +### How to use Lua scripts with this Chart + +First, you should add your Lua scripts to `luaScripts` in values.yaml, for example: + +```yaml +luaScripts: + filter_example.lua: | + function filter_name(tag, timestamp, record) + -- put your lua code here. + end +``` + +After that, the Lua scripts will be ready to be used as filters. So next step is to add your Fluent bit [filter](https://docs.fluentbit.io/manual/concepts/data-pipeline/filter) to `config.filters` in values.yaml, for example: + +```yaml +config: + filters: | + [FILTER] + Name lua + Match + script /fluent-bit/scripts/filter_example.lua + call filter_name +``` +Under the hood, the chart will: +- Create a configmap using `luaScripts`. +- Add a volumeMounts for each Lua scripts using the path `/fluent-bit/scripts/