mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 17:57:33 +00:00
Update to the latest version of google-fluentd.
It includes some performance improvements for parsing JSON (which is very important for us, since all Docker logs are JSON) as well as a couple new settings, like forcing of a flush of multiline logs after a time period rather than having to wait until a new log is seen before feeling confident flushing the previous one.
This commit is contained in:
@@ -31,7 +31,7 @@ ENV DO_NOT_INSTALL_CATCH_ALL_CONFIG true
|
|||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
apt-get install -y curl && \
|
apt-get install -y curl && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
curl -s https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh | sudo bash
|
curl -s https://dl.google.com/cloudagents/install-logging-agent.sh | bash
|
||||||
|
|
||||||
# Install the record reformer plugin.
|
# Install the record reformer plugin.
|
||||||
RUN /usr/sbin/google-fluentd-gem install fluent-plugin-record-reformer
|
RUN /usr/sbin/google-fluentd-gem install fluent-plugin-record-reformer
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
.PHONY: kbuild kpush
|
.PHONY: kbuild kpush
|
||||||
|
|
||||||
TAG = 1.17
|
TAG = 1.18
|
||||||
|
|
||||||
# Rules for building the test image for deployment to Dockerhub with user kubernetes.
|
# Rules for building the test image for deployment to Dockerhub with user kubernetes.
|
||||||
|
|
||||||
|
@@ -120,6 +120,7 @@
|
|||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format multiline
|
format multiline
|
||||||
|
multiline_flush_interval 5s
|
||||||
format_firstline /^\w\d{4}/
|
format_firstline /^\w\d{4}/
|
||||||
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
||||||
time_format %m%d %H:%M:%S.%N
|
time_format %m%d %H:%M:%S.%N
|
||||||
@@ -133,6 +134,7 @@
|
|||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format multiline
|
format multiline
|
||||||
|
multiline_flush_interval 5s
|
||||||
format_firstline /^\w\d{4}/
|
format_firstline /^\w\d{4}/
|
||||||
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
||||||
time_format %m%d %H:%M:%S.%N
|
time_format %m%d %H:%M:%S.%N
|
||||||
@@ -146,6 +148,7 @@
|
|||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format multiline
|
format multiline
|
||||||
|
multiline_flush_interval 5s
|
||||||
format_firstline /^\w\d{4}/
|
format_firstline /^\w\d{4}/
|
||||||
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
||||||
time_format %m%d %H:%M:%S.%N
|
time_format %m%d %H:%M:%S.%N
|
||||||
@@ -159,6 +162,7 @@
|
|||||||
<source>
|
<source>
|
||||||
type tail
|
type tail
|
||||||
format multiline
|
format multiline
|
||||||
|
multiline_flush_interval 5s
|
||||||
format_firstline /^\w\d{4}/
|
format_firstline /^\w\d{4}/
|
||||||
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
||||||
time_format %m%d %H:%M:%S.%N
|
time_format %m%d %H:%M:%S.%N
|
||||||
|
@@ -9,7 +9,7 @@ spec:
|
|||||||
dnsPolicy: Default
|
dnsPolicy: Default
|
||||||
containers:
|
containers:
|
||||||
- name: fluentd-cloud-logging
|
- name: fluentd-cloud-logging
|
||||||
image: gcr.io/google_containers/fluentd-gcp:1.17
|
image: gcr.io/google_containers/fluentd-gcp:1.18
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
Reference in New Issue
Block a user