Skip to content
Merged
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
14 changes: 7 additions & 7 deletions charts/demo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ kubeVersion: ">=1.18.0-0"
dependencies:
- name: fluent-bit
version: 0.20.9
repository: https://fluent.github.io/helm-charts
alias: fluent-bit
repository: file://../smarter-fluent-bit
alias: smarter-fluent-bit
- name: smarter-gstreamer
version: 0.0.2
version: 0.0.4
repository: https://smarter-project.github.io/gstreamer
- name: smarter-pulseaudio
version: 0.0.2
version: 0.0.3
repository: https://smarter-project.github.io/pulseaudio
- name: smarter-image-detector
version: 0.0.2
version: 0.0.4
repository: https://smarter-project.github.io/image-detector
- name: smarter-audio-client
version: 0.0.2
version: 0.0.4
repository: https://smarter-project.github.io/audio-client
- name: smarter-inference
version: 0.0.2
version: 0.0.4
repository: https://smarter-project.github.io/smarter-inference
icon: https://gitlab.com/uploads/-/system/group/avatar/59012546/ARM1636_Project_Logo_ST2_RGB_V1.png
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/demo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
global:
domain: example.com

fluent-bit:
smarter-fluent-bit:
fluentd:
host: fluentbit
port: 30224
Expand Down
4 changes: 2 additions & 2 deletions charts/smarter-edge/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ kubeVersion: ">=1.18.0-0"

dependencies:
- name: smarter-cni
version: 0.0.2
version: 0.0.3
repository: https://smarter-project.github.io/smarter-cni
- name: smarter-dns
version: 0.0.2
version: 0.0.4
repository: https://smarter-project.github.io/smarter-dns
- name: smarter-device-manager
version: 0.0.7
Expand Down
31 changes: 31 additions & 0 deletions charts/smarter-fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Extended with hostname in daemonset"
apiVersion: v2
name: smarter-fluent-bit
appVersion: 1.9.9
description: Fast and lightweight log processor and forwarder or Linux, OSX and BSD
family operating systems.
home: https://fluentbit.io/
icon: https://fluentbit.io/assets/img/logo1-default.png
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.20.9
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
57 changes: 57 additions & 0 deletions charts/smarter-fluent-bit/README.md
Original file line number Diff line number Diff line change
@@ -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 <your-tag>
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/<script>`.
- Add the Lua script's configmap as volume to the pod.

### Note
Remember to set the `script` attribute in the filter using `/fluent-bit/scripts/`, otherwise the file will not be found by fluent bit.
1 change: 1 addition & 0 deletions charts/smarter-fluent-bit/ci/ci-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
logLevel: debug
Loading