Skip to content
Permalink
Browse files

chore(deis): Allow users to disable the deis output plugin

  • Loading branch information...
Jonathan Chauncey
Jonathan Chauncey committed Sep 16, 2016
1 parent 132a264 commit bf242e209ec9b74d3ed14c414e965a53658a447d
Showing with 11 additions and 0 deletions.
  1. +8 −0 README.md
  2. +3 −0 rootfs/opt/fluentd/sbin/stores/deis
@@ -11,6 +11,8 @@ This is an centos7 based image for running [fluentd](http://fluentd.org). It is

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.

## Configuration

### Enable more verbose logging
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.

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

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.

### Disable Deis Output
To turn off the deis output plugin set the following environment variable to a non-empty string value
* DISABLE_DEIS_OUTPUT

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.

## Plugins

### [fluent-plugin-kubernetes_metadata_filter](https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter)
@@ -1,6 +1,9 @@
#!/bin/bash
if [ -n "DISABLE_DEIS_OUTPUT" ]
then
cat << EOF >> $FLUENTD_CONF
<store>
@type deis
</store>
EOF
fi

0 comments on commit bf242e2

Please sign in to comment.
You can’t perform that action at this time.