fix: upgrade vector and decrease log level to avoid spam

Vector is spamming us with messages concerning absent containers. Such messages include:

tutor_local-cairn-vector-1                  | 2022-10-07T13:09:27.053010Z  INFO source{component_kind="source" component_id=docker_logs component_type=docker_logs component_name=docker_logs}: vector::internal_events::docker_logs: Started watching for container logs. container_id=680c2bf183676caadee2c165b26493f90fb5d02cb15b9f2579a106fdd436f827

Or:

{“log”:“2022-10-07T07:19:17.839042Z INFO vector::internal_events::docker_logs: Started watching for container logs. container_id=a932d5916f9a1d1848224b71070591d16c813e83796d6850fa64b0a5f956d5ed\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83961548Z”}
{“log”:“2022-10-07T07:19:17.839311Z INFO vector::internal_events::docker_logs: Stopped watching for container logs. container_id=cb9a4330dc154e02f02f6f6b49d9ddb04b5357083becdf6e9c5cbf49f4d01f68\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83967086Z”}

See also: https://github.com/vectordotdev/vector/issues/8881

This issue has affected multiple users in the past. To address it, we first
tried to upgrade Vector, which did not help. Thus, we decided to reduce the
verbosity of Vector.
This commit is contained in:
Régis Behmo 2022-10-07 15:21:58 +02:00
parent a802eed7d3
commit 30dd7714ce
3 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,7 @@ spec:
topologyKey: kubernetes.io/hostname
containers:
- name: cairn-vector
image: docker.io/timberio/vector:0.18.1-alpine
image: {{ CAIRN_VECTOR_DOCKER_IMAGE }}
env:
- name: VECTOR_SELF_NODE_NAME
valueFrom:
@ -89,6 +89,8 @@ spec:
value: /host/proc
- name: SYSFS_ROOT
value: /host/sys
- name: VECTOR_LOG
value: warn
volumeMounts:
- name: data
mountPath: /var/lib/vector

View File

@ -2,13 +2,14 @@
# log collection
cairn-vector:
image: docker.io/timberio/vector:0.18.1-alpine
image: {{ CAIRN_VECTOR_DOCKER_IMAGE }}
volumes:
- ../../data/cairn/vector:/var/lib/vector
- ../plugins/cairn/apps/vector/local.toml:/etc/vector/vector.toml:ro
{% if CAIRN_DOCKER_HOST_SOCK_PATH %}- {{ CAIRN_DOCKER_HOST_SOCK_PATH }}:/var/run/docker.sock:ro{% endif %}
environment:
- DOCKER_HOST=/var/run/docker.sock
- VECTOR_LOG=warn
restart: unless-stopped
{% if CAIRN_RUN_CLICKHOUSE %}
# log storage

View File

@ -32,6 +32,8 @@ config = {
"POSTGRESQL_USERNAME": "superset",
"SUPERSET_DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/cairn-superset:{{ CAIRN_VERSION }}",
"SUPERSET_LANGUAGE_CODE": "{{ LANGUAGE_CODE[:2] }}",
# Vector
"VECTOR_DOCKER_IMAGE": "docker.io/timberio/vector:0.24.1-alpine",
},
}