Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit bf242e2

Browse files
author
Jonathan Chauncey
committed
chore(deis): Allow users to disable the deis output plugin
1 parent 132a264 commit bf242e2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This is an centos7 based image for running [fluentd](http://fluentd.org). It is
1111

1212
This work is based on the [docker-fluentd](https://github.com/fabric8io/docker-fluentd) and [docker-fluentd-kubernetes](https://github.com/fabric8io/docker-fluentd-kubernetes) images by the fabric8 team. This image is in with [deis](https://github.com/deis/deis) v2 to send all log data to the [logger](https://github.com/deis/logger) component.
1313

14+
## Configuration
15+
1416
### Enable more verbose logging
1517
By default we do not capture kubernetes system logs. However, it is possible to tell fluentd to capture those logs just by specifying a few new environment variables.
1618

@@ -24,6 +26,12 @@ By default we do not capture kubernetes system logs. However, it is possible to
2426

2527
Set a variable's value to a non-empty string such as "true" to capture that log. Make these changes to the tpl/deis-logger-fluentd-daemon.yaml file in the Workflow chart directory.
2628

29+
### Disable Deis Output
30+
To turn off the deis output plugin set the following environment variable to a non-empty string value
31+
* DISABLE_DEIS_OUTPUT
32+
33+
This means we will not capture data from the log stream and send it to NSQ for processing. This means you will disable application logs (`deis logs`) and metrics generated from deis router.
34+
2735
## Plugins
2836

2937
### [fluent-plugin-kubernetes_metadata_filter](https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
2+
if [ -n "DISABLE_DEIS_OUTPUT" ]
3+
then
24
cat << EOF >> $FLUENTD_CONF
35
<store>
46
@type deis
57
</store>
68
EOF
9+
fi

0 commit comments

Comments
 (0)