Skip to content

Commit 83d0a32

Browse files
authored
feat: add labels for loki stream (#424)
Improves how labels are used to create streams in Loki without overloading Loki's stream cardinality. Relates to datum-cloud/infra#896.
2 parents 7c919b1 + 5fb9cbf commit 83d0a32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/telemetry/vector-audit-log-processor/vector-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ sinks:
219219
codec: json
220220
labels:
221221
telemetry_datumapis_com_audit_log: "true"
222+
control_plane_type: '{{ annotations."telemetry.miloapis.com/control-plane-type" }}'
223+
organization_name: '{{ annotations."resourcemanager.miloapis.com/organization-name" }}'
224+
project_name: '{{ annotations."resourcemanager.miloapis.com/project-name" }}'
222225
buffer:
223226
type: disk
224227
max_size: 10737418240 # 10GB

0 commit comments

Comments
 (0)