Skip to content

Commit

Permalink
Merge pull request #125 from appuio/feat/vector-as-default
Browse files Browse the repository at this point in the history
Vector is now the default logging collector
  • Loading branch information
DebakelOrakel authored Mar 1, 2024
2 parents ba59818 + eaa875a commit f1e3641
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ parameters:
nodeSelector:
node-role.kubernetes.io/infra: ''
collection:
type: fluentd
type: vector

clusterLogForwarding:
enabled: false
Expand Down
19 changes: 19 additions & 0 deletions docs/modules/ROOT/pages/how-tos/upgrade-v2.x-v3.x.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Elasticsearch is deprecated.
The component will deploy Lokistack by default, for keeping elasticsearch apply config below.

Fluentd collector is deprecated.
The component will deploy Vector by default, for keeping Fluentd apply config below.
Vector does not support all forwarding protocols, see https://docs.openshift.com/container-platform/4.15/logging/log_collection_forwarding/log-forwarding.html#log-forwarding-collector-outputs_log-forwarding[OpenShift Documentation].

The parameter `clusterLogging.collector.logs` is deprecated.
The component is backwards compatible, but moving the parameters to `clusterLogging.collector` is highly encouraged.

Expand Down Expand Up @@ -32,6 +36,21 @@ parameters:
<3> Set Elasticsearch in `clusterLogging`


== Keep Fluentd as Log collector

Set `clusterLogging.collection.type` to `fluentd`:

[source,yaml]
----
parameters:
openshift4_logging:
clusterLogging:
collection:
type: fluentd <1>
----
<1> Set Fluentd in `clusterLogging`


== Move `clusterLogging.collector.logs`

Move the `clusterLogging.collector.logs` parameters:
Expand Down
4 changes: 3 additions & 1 deletion tests/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ parameters:
elasticsearch:
enabled: true
clusterLogging:
collection:
type: fluentd
logStore:
type: lokistack
type: elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
namespace: openshift-logging
spec:
collection:
type: fluentd
type: vector
logStore:
lokistack:
name: loki
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
infra:
maxAge: 30d
pruneNamespacesInterval: 15m
type: lokistack
type: elasticsearch
managementState: Managed
visualization:
kibana:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
namespace: openshift-logging
spec:
collection:
type: fluentd
type: vector
logStore:
lokistack:
name: loki
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,14 @@ spec:
severity: warning
syn: 'true'
syn_component: openshift4-logging
- alert: SYN_LokistackSchemaUpgradesRequired
annotations:
message: Object storage schema needs upgrade.
runbook_url: https://github.com/grafana/loki/blob/main/operator/docs/lokistack/sop.md#Lokistack-Schema-Upgrades-Required
summary: The applied storage schema config is old and should be upgraded.
expr: sum by(stack_id) (lokistack_warnings_count) > 0
labels:
resource: '{{ $labels.stack_id}}'
severity: warning
syn: 'true'
syn_component: openshift4-logging
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
namespace: openshift-logging
spec:
collection:
type: fluentd
type: vector
logStore:
lokistack:
name: loki
Expand Down

0 comments on commit f1e3641

Please sign in to comment.