Skip to content

Commit 21ce2cf

Browse files
committed
fix: adjust vector message_id configuration
Have to enable JetStream to take advantage of the message_id option.
1 parent 5ca4bc1 commit 21ce2cf

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

config/components/vector-sidecar/vector-sidecar-hr.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,14 @@ spec:
121121
healthcheck:
122122
enabled: true
123123

124-
# NATS message ID for de-duplication
125-
# Uses the Kubernetes auditID as the NATS message ID to enable
126-
# JetStream's duplicate detection within the duplicateWindow (10m)
127-
# This prevents duplicate events from webhook retries or Vector restarts
128-
message_id:
129-
type: vrl
130-
source: |
131-
# Use the Kubernetes audit ID as the NATS message ID
132-
# NATS will reject duplicates within the duplicateWindow
133-
to_string!(.auditID)
124+
jetstream:
125+
enabled: true
126+
headers:
127+
# NATS message ID for de-duplication
128+
# Uses the Kubernetes auditID as the NATS message ID to enable
129+
# JetStream's duplicate detection within the duplicateWindow (10m)
130+
# This prevents duplicate events from webhook retries or Vector restarts
131+
message_id: {{ .auditID }}
134132

135133
# Buffer for durability
136134
# 10GB disk buffer to survive NATS outages

0 commit comments

Comments
 (0)