diff --git a/config/fluentd.jsonnet b/config/fluentd.jsonnet index c4113213..823e1afc 100644 --- a/config/fluentd.jsonnet +++ b/config/fluentd.jsonnet @@ -12,6 +12,5 @@ local outputConf = std.strReplace(outputConfMissingZone, '{{GCE_ZONE}}', std.ext 'containers.input.conf': importstr 'fluentd/containers.input.conf', 'monitoring.conf': importstr 'fluentd/monitoring.conf', 'output.conf': outputConf, - 'system.input.conf': importstr 'fluentd/system.input.conf', }, } diff --git a/config/fluentd/containers.input.conf b/config/fluentd/containers.input.conf index 0617690e..93ccc54f 100644 --- a/config/fluentd/containers.input.conf +++ b/config/fluentd/containers.input.conf @@ -66,19 +66,19 @@ # Detect exceptions in the log output and forward them as one log entry. - @type copy +@type copy - @type prometheus + @type prometheus - type counter - name logging_line_count - desc Total number of lines generated by application containers - - tag ${tag} - - + type counter + name logging_line_count + desc Total number of lines generated by application containers + + tag ${tag} + + @type detect_exceptions @@ -90,4 +90,3 @@ max_bytes 500000 max_lines 1000 - diff --git a/config/fluentd/output.conf.template b/config/fluentd/output.conf.template index 632d6e9d..6c071dad 100644 --- a/config/fluentd/output.conf.template +++ b/config/fluentd/output.conf.template @@ -1,7 +1,4 @@ -# We use 2 output stanzas - one to handle the container logs and one to handle -# the node daemon logs. This allows us to label Prometheus metrics differently -# depending on the component ("container" or "system"). - + @type copy @@ -53,41 +50,3 @@ - - - @type copy - - - @type google_cloud - use_metadata_service false - - project_id {{PROJECT_ID}} - zone {{GCE_ZONE}} - vm_id NODE_HOSTNAME - vm_name NODE_HOSTNAME - - detect_subservice false - buffer_type file - buffer_path /var/log/fluentd-buffers/kubernetes.system.buffer - buffer_queue_full_action block - buffer_chunk_limit 2M - buffer_queue_limit 2 - flush_interval 5s - max_retry_wait 30 - disable_retry_limit - num_threads 2 - - - @type prometheus - - - type counter - name logging_entry_count - desc Total number of log entries generated by either an application container or a system component - - tag ${tag} - component system - - - - diff --git a/config/fluentd/system.input.conf b/config/fluentd/system.input.conf deleted file mode 100644 index 3134a365..00000000 --- a/config/fluentd/system.input.conf +++ /dev/null @@ -1,132 +0,0 @@ -# Examples: -# time="2016-02-04T06:51:03.053580605Z" level=info msg="GET /containers/json" -# time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404 - - type tail - format /^time="(?