[fluentd-gcp addon] Restore the metric for the number of read log entries

This commit is contained in:
Mik Vyatskov 2017-09-12 13:14:30 +02:00
parent 01154dd3cf
commit 683fc23000
2 changed files with 15 additions and 2 deletions

View File

@ -332,6 +332,19 @@ data:
</metric>
</match>
# This filter allows to count the number of log entries read by fluentd
# before they are processed by the output plugin. This in turn allows to
# monitor the number of log entries that were read but never sent, e.g.
# because of liveness probe removing buffer.
<filter **>
@type prometheus
<metric>
type counter
name logging_entry_count
desc Total number of log entries generated by either application containers or system components
</metric>
</filter>
# We use 2 output stanzas - one to handle the container logs and one to handle
# the node daemon logs, the latter of which explicitly sends its logs to the
# compute.googleapis.com service rather than container.googleapis.com to keep
@ -383,7 +396,7 @@ data:
num_threads 2
</match>
metadata:
name: fluentd-gcp-config-v1.1
name: fluentd-gcp-config-v1.1.2
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: Reconcile

View File

@ -117,7 +117,7 @@ spec:
path: /usr/lib64
- name: config-volume
configMap:
name: fluentd-gcp-config-v1.1
name: fluentd-gcp-config-v1.1.2
- name: ssl-certs
hostPath:
path: /etc/ssl/certs