mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
[fluentd-gcp addon] Restore the metric for the number of read log entries
This commit is contained in:
parent
01154dd3cf
commit
683fc23000
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user