Skip to content

Commit 64c9e44

Browse files
committed
fix: defaults
1 parent 15df6ea commit 64c9e44

File tree

1 file changed

+106
-24
lines changed

1 file changed

+106
-24
lines changed

infra/ingest/vector.yaml

Lines changed: 106 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,65 +29,146 @@ transforms:
2929
email_events: '.topic == "analytics-email-events"'
3030
blocked_traffic: '.topic == "analytics-blocked-traffic"'
3131

32-
sink_defaults: &ch_defaults
33-
type: clickhouse
34-
endpoint: "${CLICKHOUSE_URL}"
35-
database: analytics
36-
auth:
37-
strategy: basic
38-
user: "${CLICKHOUSE_USER}"
39-
password: "${CLICKHOUSE_PASSWORD}"
40-
batch:
41-
max_events: 5000
42-
max_bytes: 5000000
43-
timeout_secs: 5
44-
date_time_best_effort: true
45-
skip_unknown_fields: true
46-
encoding:
47-
timestamp_format: unix_ms
48-
4932
sinks:
5033
clickhouse_events:
51-
<<: *ch_defaults
34+
type: clickhouse
5235
inputs:
5336
- route_analytics.events
37+
endpoint: "${CLICKHOUSE_URL}"
38+
database: analytics
5439
table: events
40+
auth:
41+
strategy: basic
42+
user: "${CLICKHOUSE_USER}"
43+
password: "${CLICKHOUSE_PASSWORD}"
44+
batch:
45+
max_events: 5000
46+
max_bytes: 5000000
47+
timeout_secs: 5
48+
date_time_best_effort: true
49+
skip_unknown_fields: true
50+
encoding:
51+
timestamp_format: unix_ms
5552

5653
clickhouse_errors:
57-
<<: *ch_defaults
54+
type: clickhouse
5855
inputs:
5956
- route_analytics.errors
57+
endpoint: "${CLICKHOUSE_URL}"
58+
database: analytics
6059
table: errors
60+
auth:
61+
strategy: basic
62+
user: "${CLICKHOUSE_USER}"
63+
password: "${CLICKHOUSE_PASSWORD}"
64+
batch:
65+
max_events: 5000
66+
max_bytes: 5000000
67+
timeout_secs: 5
68+
date_time_best_effort: true
69+
skip_unknown_fields: true
70+
encoding:
71+
timestamp_format: unix_ms
6172

6273
clickhouse_web_vitals:
63-
<<: *ch_defaults
74+
type: clickhouse
6475
inputs:
6576
- route_analytics.web_vitals
77+
endpoint: "${CLICKHOUSE_URL}"
78+
database: analytics
6679
table: web_vitals
80+
auth:
81+
strategy: basic
82+
user: "${CLICKHOUSE_USER}"
83+
password: "${CLICKHOUSE_PASSWORD}"
84+
batch:
85+
max_events: 5000
86+
max_bytes: 5000000
87+
timeout_secs: 5
88+
date_time_best_effort: true
89+
skip_unknown_fields: true
90+
encoding:
91+
timestamp_format: unix_ms
6792

6893
clickhouse_custom_events:
69-
<<: *ch_defaults
94+
type: clickhouse
7095
inputs:
7196
- route_analytics.custom_events
97+
endpoint: "${CLICKHOUSE_URL}"
98+
database: analytics
7299
table: custom_events
100+
auth:
101+
strategy: basic
102+
user: "${CLICKHOUSE_USER}"
103+
password: "${CLICKHOUSE_PASSWORD}"
104+
batch:
105+
max_events: 5000
106+
max_bytes: 5000000
107+
timeout_secs: 5
108+
date_time_best_effort: true
109+
skip_unknown_fields: true
110+
encoding:
111+
timestamp_format: unix_ms
73112

74113
clickhouse_outgoing_links:
75-
<<: *ch_defaults
114+
type: clickhouse
76115
inputs:
77116
- route_analytics.outgoing_links
117+
endpoint: "${CLICKHOUSE_URL}"
118+
database: analytics
78119
table: outgoing_links
120+
auth:
121+
strategy: basic
122+
user: "${CLICKHOUSE_USER}"
123+
password: "${CLICKHOUSE_PASSWORD}"
124+
batch:
125+
max_events: 5000
126+
max_bytes: 5000000
127+
timeout_secs: 5
128+
date_time_best_effort: true
129+
skip_unknown_fields: true
130+
encoding:
131+
timestamp_format: unix_ms
79132

80133
clickhouse_email_events:
81-
<<: *ch_defaults
134+
type: clickhouse
82135
inputs:
83136
- route_analytics.email_events
137+
endpoint: "${CLICKHOUSE_URL}"
138+
database: analytics
84139
table: email_events
140+
auth:
141+
strategy: basic
142+
user: "${CLICKHOUSE_USER}"
143+
password: "${CLICKHOUSE_PASSWORD}"
144+
batch:
145+
max_events: 5000
146+
max_bytes: 5000000
147+
timeout_secs: 5
148+
date_time_best_effort: true
149+
skip_unknown_fields: true
150+
encoding:
151+
timestamp_format: unix_ms
85152

86153
clickhouse_blocked_traffic:
87-
<<: *ch_defaults
154+
type: clickhouse
88155
inputs:
89156
- route_analytics.blocked_traffic
157+
endpoint: "${CLICKHOUSE_URL}"
158+
database: analytics
90159
table: blocked_traffic
160+
auth:
161+
strategy: basic
162+
user: "${CLICKHOUSE_USER}"
163+
password: "${CLICKHOUSE_PASSWORD}"
164+
batch:
165+
max_events: 5000
166+
max_bytes: 5000000
167+
timeout_secs: 5
168+
date_time_best_effort: true
169+
skip_unknown_fields: true
170+
encoding:
171+
timestamp_format: unix_ms
91172

92173
dead_letters:
93174
type: file
@@ -98,3 +179,4 @@ sinks:
98179
codec: json
99180

100181

182+

0 commit comments

Comments
 (0)