Skip to content

Commit

Permalink
fluentd monitoring (#85)
Browse files Browse the repository at this point in the history
* added prometheus plugin
* added templates for monitoring fluentd
  • Loading branch information
tamir-michaeli authored Feb 6, 2023
1 parent 75f6bfd commit b86fe77
Show file tree
Hide file tree
Showing 5 changed files with 685 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ source "https://rubygems.org"
gem "fluent-plugin-logzio", "0.0.22"
gem "fluent-plugin-kubernetes_metadata_filter", ">=3.1.2"
gem "fluent-plugin-dedot_filter", ">=1.0.0"
gem "fluent-plugin-prometheus", ">=2.0.3"
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ For container runtime Containerd:
kubectl apply -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/logzio-daemonset-containerd.yaml -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/configmap.yaml
```

For monitoring fluentd with runtime Containerd:
```shell
kubectl apply -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/logzio-daemonset-containerd-monitoring.yaml -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/configmap-monitoring.yaml
```

For monitoring fluentd with runtime Docker:
```shell
kubectl apply -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/logzio-daemonset-rbac-monitoring.yaml -f https://raw.githubusercontent.com/logzio/logzio-k8s/master/configmap-monitoring.yaml
```

#### 4. Check Logz.io for your logs

Give your logs some time to get from your system to ours, and then open [Kibana](https://app.logz.io/#/dashboard/kibana).
Expand Down Expand Up @@ -195,14 +205,19 @@ See the [troubleshooting document](https://github.com/logzio/logzio-k8s/blob/mas

To suppress Fluentd system messages, set the `FLUENTD_SYSTEMD_CONF` environment variable to `disable` in your Kubernetes environment.

### Disable prometheus input plugins
### Enable prometheus monitoring

By default, latest images launch `prometheus` plugins to monitor fluentd. You can disable prometheus input plugin by setting `disable` to `FLUENTD_PROMETHEUS_CONF` environment variable in your kubernetes configuration.
In order to monitor fluentd and collect input & output metrics. You can
deploy `logzio-daemonset-containerd-monitoring` or `logzio-daemonset-rbac-monitoring`, and `configmap-monitoring.yaml`.
These templates collects and exposes fluentd metrics on port `24231`, `/metrics` endpoint. The templates contains annotations to easly ship when using promehteus shipper.



### Changelog
**logzio/logzio-fluentd**:
- v1.3.1:
- Added `fluent-plugin-prometheus`.
- Added `logzio-daemonset-containerd-monitoring`, `logzio-daemonset-rbac-monitoring` and `configmap-monitoring.yaml` which exposes fluentd metrics on the pods port `24231`, `/metrics` endpoint
- v1.3.0:
- Added plugin `fluent-plugin-dedot_filter`.
- Updated image in daemonset templates, increased memory and cpu requirements.
Expand Down
Loading

0 comments on commit b86fe77

Please sign in to comment.