diff --git a/docs/helm/victoria-logs-single/CHANGELOG.md b/docs/helm/victoria-logs-single/CHANGELOG.md index 0d64ece95..726cf4ad3 100644 --- a/docs/helm/victoria-logs-single/CHANGELOG.md +++ b/docs/helm/victoria-logs-single/CHANGELOG.md @@ -2,6 +2,34 @@ - TODO +## 0.8.1 + +**Release date:** 2024-11-08 + +![AppVersion: v0.41.0](https://img.shields.io/static/v1?label=AppVersion&message=v0.41.0&color=success&logo=) +![Helm: v3](https://img.shields.io/static/v1?label=Helm&message=v3&color=informational&logo=helm) + +- updated common dependency 0.0.21 -> 0.0.23 +- added `log.message` to a list of default vector message fields + +## 0.8.0 + +**Release date:** 2024-11-08 + +![AppVersion: v0.41.0](https://img.shields.io/static/v1?label=AppVersion&message=v0.41.0&color=success&logo=) +![Helm: v3](https://img.shields.io/static/v1?label=Helm&message=v3&color=informational&logo=helm) + +**Update note 1**: In a response to multiple collector related configuration feature requests and inability to use fluent-bit YAML configuration parser to provide +ability easily override parts of default configuration we've considered using Vector as a default logs collector instead of fluent-bit. +Please consider using [vector chart docs](https://github.com/vectordotdev/helm-charts/tree/develop/charts/vector) values under `vector` key +to update your agent configuration if you are using it. + +- Allow selecting multiple/all instances in a dashboard. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1699) +- Upgraded VictoriaLogs 0.40.0 -> 0.41.0 +- Replaced default fluent-bit collector with vector +- Parsed json fields are now nested into `log` key. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1708) +- updated common dependency 0.0.19 -> 0.0.21 + ## 0.7.3 **Release date:** 2024-11-06 diff --git a/docs/helm/victoria-logs-single/README.md b/docs/helm/victoria-logs-single/README.md index d4dbc60d1..fb3e41bf3 100644 --- a/docs/helm/victoria-logs-single/README.md +++ b/docs/helm/victoria-logs-single/README.md @@ -1,4 +1,4 @@ - ![Version: 0.7.3](https://img.shields.io/badge/Version-0.7.3-informational?style=flat-square) + ![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/victoriametrics)](https://artifacthub.io/packages/helm/victoriametrics/victoria-logs-single) [![Slack](https://img.shields.io/badge/join%20slack-%23victoriametrics-brightgreen.svg)](https://slack.victoriametrics.com/) @@ -15,15 +15,15 @@ Victoria Logs Single version - high-performance, cost-effective and scalable log This chart will do the following: * Rollout Victoria Logs Single. -* (optional) Rollout [fluentbit](https://fluentbit.io/) to collect logs from pods. +* (optional) Rollout [vector](https://vector.dev/) to collect logs from pods. Chart allows to configure logs collection from Kubernetes pods to VictoriaLogs. -In order to do that you need to enable fluentbit: +In order to do that you need to enable vector: ```yaml -fluent-bit: +vector: enabled: true ``` -By default, fluentbit will forward logs to VictoriaLogs installation deployed by this chart. +By default, vector will forward logs to VictoriaLogs installation deployed by this chart. ## How to install @@ -143,106 +143,6 @@ Change the values according to the need of the environment in ``victoria-logs-si
-0
-
-
-
-msg
-
-
-
-_msg
-
-
-
-message
-
-
-
-0
-
-
-
-stream
-
-
-
-kubernetes_pod_name
-
-
-
-kubernetes_container_name
-
-
-
-kubernetes_namespace_name
-
-
-
-date
-
-
-Add extra specs dynamically to this chart
-
-args:
- - --workdir=/fluent-bit/etc
- - --config=/fluent-bit/etc/conf/fluent-bit.conf
- - --enable-hot-reload
-config:
- filters: |
- [FILTER]
- Name kubernetes
- Match kube.*
- Merge_Log On
- Keep_Log On
- K8S-Logging.Parser On
- K8S-Logging.Exclude On
- [FILTER]
- Name nest
- Match *
- Wildcard pod_name
- Operation lift
- Nested_under kubernetes
- Add_prefix kubernetes_
- [FILTER]
- Name parser
- Match *
- Parser json
- Key_Name log
- Reserve_Data On
- [FILTER]
- Name modify
- Match *
- Rename log msg
- outputs: |
- @INCLUDE /fluent-bit/etc/conf/vl/output_*.conf
-daemonSetVolumeMounts:
- - mountPath: /var/log
- name: varlog
- - mountPath: /var/lib/docker/containers
- name: varlibdockercontainers
- readOnly: true
- - mountPath: /fluent-bit/etc/conf/vl
- name: vl-outputs
-daemonSetVolumes:
- - hostPath:
- path: /var/log
- name: varlog
- - hostPath:
- path: /var/lib/docker/containers
- name: varlibdockercontainers
- - configMap:
- name: vl-outputs
- name: vl-outputs
-enabled: false
-extraContainers: |
- - name: reloader
- image: {{ include "fluent-bit.image" .Values.hotReload.image }}
- args:
- - {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
- - -volume-dir=/watch/config
- - -volume-dir=/watch/outputs
- volumeMounts:
- - name: config
- mountPath: /watch/config
- - name: vl-outputs
- mountPath: /watch/outputs
-resources: {}
-
-
-Values for fluent-bit helm chart
-
-fluent-bit.config.filters: |
- [FILTER]
- Name kubernetes
- Match kube.*
- Merge_Log On
- Keep_Log On
- K8S-Logging.Parser On
- K8S-Logging.Exclude On
- [FILTER]
- Name nest
- Match *
- Wildcard pod_name
- Operation lift
- Nested_under kubernetes
- Add_prefix kubernetes_
- [FILTER]
- Name parser
- Match *
- Parser json
- Key_Name log
- Reserve_Data On
- [FILTER]
- Name modify
- Match *
- Rename log msg
-
-
-
-FluentBit configuration filters
-
-fluent-bit.config.outputs: |
- @INCLUDE /fluent-bit/etc/conf/vl/output_*.conf
-
-
-
-Note that Host must be replaced to match your VictoriaLogs service name Default format points to VictoriaLogs service.
-
-false
-
-
-Enable deployment of fluent-bit
Pod topologySpreadConstraints
+
+customConfig:
+ api:
+ address: 127.0.0.1:8686
+ enabled: false
+ playground: true
+ data_dir: /vector-data-dir
+ sinks:
+ vlogs:
+ api_version: v8
+ compression: gzip
+ endpoints: << include "vlogs.es.urls" . >>
+ healthcheck:
+ enabled: false
+ inputs:
+ - parser
+ mode: bulk
+ request:
+ headers:
+ AccountID: "0"
+ ProjectID: "0"
+ VL-Msg-Field: message,msg,_msg,log.msg,log.message,log
+ VL-Stream-Fields: stream,kubernetes.pod_name,kubernetes.container_name,kubernetes.pod_namespace
+ VL-Time-Field: timestamp
+ type: elasticsearch
+ sources:
+ k8s:
+ type: kubernetes_logs
+ transforms:
+ parser:
+ inputs:
+ - k8s
+ source: |
+ .log = parse_json(.message) ?? .message
+ del(.message)
+ type: remap
+dataDir: /vector-data-dir
+enabled: false
+env:
+ - name: VECTOR_SELF_NODE_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: spec.nodeName
+existingConfigMaps:
+ - vl-config
+resources: {}
+role: Agent
+service:
+ enabled: false
+
+
+Values for vector helm chart
+
+false
+
+
+Enable deployment of vector