[sumologic-fluentd] Update to latest image and expose new configuration to control stat watcher on fluentD in_tail plugins. (#6304)

* upgrade to latest image (v1.15).  Add configuration for new properties.

* Bump minor version for new feature

* update to latest image (v1.16) and add support for new configuration to control the enabling/disabling of stat watcher on in_tail configuration.

* Bump minor version for new feature
This commit is contained in:
Frank Reno
2018-06-25 12:10:32 -07:00
committed by k8s-ci-robot
parent f839d88d08
commit 63371a6d07
4 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
name: sumologic-fluentd
version: 0.5.0
appVersion: 1.15
version: 0.6.0
appVersion: 1.16
description: Sumologic Log Collector
keywords:
- monitoring
+5 -1
View File
@@ -92,8 +92,9 @@ The following table lists the configurable parameters of the sumologic-fluentd c
| `sumologic.addTimeStamp` | Option to control adding timestamp to logs. | `true`
| `sumologic.containerLogsPath` | Specify the path in_tail should watch for container logs. | `/mnt/log/containers/*.log`
| `sumologic.proxyUri` | Add the uri of the proxy environment if present. | `Nil`
| `sumologic.enableStatWatcher` | Option to control the enabling of [stat_watcher](https://docs.fluentd.org/v1.0/articles/in_tail#enable_stat_watcher). | `true`
| `image.name` | The image repository and name to pull from | `sumologic/fluentd-kubernetes-sumologic` |
| `image.tag` | The image tag to pull | `v1.15` |
| `image.tag` | The image tag to pull | `v1.16` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `persistence.enabled` | Boolean value, used to turn on or off fluentd position file persistence, on nodes (requires Kubernetes >= 1.8) | `false` |
| `persistence.hostPath` | The path, on each node, to a directory for fluentd pos files. You must create the directory on each node first or set `persistence.createPath` (requires Kubernetes >= 1.8) | `/var/run/fluentd-pos` |
@@ -246,3 +247,6 @@ spec:
ports:
- containerPort: 80
```
### FluentD stops processing logs
When dealing with large volumes of data (TB's from what we have seen), FluentD may stop processing logs, but continue to run. This issue seems to be caused by the [scalability of the inotify process](https://github.com/fluent/fluentd/issues/1630) that is packaged with the FluentD in_tail plugin. If you encounter this situation, setting the `ENABLE_STAT_WATCHER` to `false` should resolve this issue.
@@ -175,6 +175,10 @@ spec:
- name: PROXY_URI
value: {{ quote .Values.sumologic.proxyUri }}
{{- end }}
{{- if .Values.sumologic.enableStatWatcher }}
- name: ENABLE_STAT_WATCHER
value: {{ quote .Values.sumologic.enableStatWatcher }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "sumologic-fluentd.fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
volumes:
- name: pos-files
+5 -1
View File
@@ -1,7 +1,7 @@
# Default values for sumologic-fluentd.
image:
name: sumologic/fluentd-kubernetes-sumologic
tag: v1.15
tag: v1.16
pullPolicy: IfNotPresent
## Annotations to add to the DaemonSet's Pods
@@ -125,6 +125,10 @@ sumologic:
## Add the uri of the proxy environment if present.
# proxyUri:
## Option to control the enabling of stat_watcher. (Default true)
## ref: https://docs.fluentd.org/v1.0/articles/in_tail#enable_stat_watcher
# enableStatWatcher:
## Option to control adding timestamp to logs. (Default true)
addTimeStamp: true