mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +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>
|
</metric>
|
||||||
</match>
|
</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
|
# 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
|
# 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
|
# compute.googleapis.com service rather than container.googleapis.com to keep
|
||||||
@ -383,7 +396,7 @@ data:
|
|||||||
num_threads 2
|
num_threads 2
|
||||||
</match>
|
</match>
|
||||||
metadata:
|
metadata:
|
||||||
name: fluentd-gcp-config-v1.1
|
name: fluentd-gcp-config-v1.1.2
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
labels:
|
labels:
|
||||||
addonmanager.kubernetes.io/mode: Reconcile
|
addonmanager.kubernetes.io/mode: Reconcile
|
||||||
|
@ -117,7 +117,7 @@ spec:
|
|||||||
path: /usr/lib64
|
path: /usr/lib64
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: fluentd-gcp-config-v1.1
|
name: fluentd-gcp-config-v1.1.2
|
||||||
- name: ssl-certs
|
- name: ssl-certs
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/ssl/certs
|
path: /etc/ssl/certs
|
||||||
|
Loading…
Reference in New Issue
Block a user