-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathconfiguration.cue
More file actions
1091 lines (998 loc) · 37.5 KB
/
configuration.cue
File metadata and controls
1091 lines (998 loc) · 37.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package metadata
generated: configuration: configuration: {
healthchecks: {
type: object: options: {
enabled: {
type: bool: default: true
description: """
Whether or not healthchecks are enabled for all sinks.
Can be overridden on a per-sink basis.
"""
required: false
}
require_healthy: {
type: bool: default: false
description: """
Whether or not to require a sink to report as being healthy during startup.
When enabled and a sink reports not being healthy, Vector will exit during start-up.
Can be alternatively set, and overridden by, the `--require-healthy` command-line flag.
"""
required: false
}
}
description: "Healthcheck options."
}
api: {
type: object: options: {
address: {
type: string: {
default: "127.0.0.1:8686"
examples: ["0.0.0.0:8686", "127.0.0.1:1234"]
}
description: """
The network address to which the API should bind. If you're running
Vector in a Docker container, bind to `0.0.0.0`. Otherwise
the API will not be exposed outside the container.
"""
common: true
required: false
}
enabled: {
type: bool: default: false
description: "Whether the GraphQL API is enabled for this Vector instance."
common: true
required: false
}
graphql: {
type: bool: default: true
description: """
Whether the endpoint for receiving and processing GraphQL queries is
enabled for the API. The endpoint is accessible via the `/graphql`
endpoint of the address set using the `bind` parameter.
"""
common: true
required: false
}
playground: {
type: bool: default: true
description: """
Whether the [GraphQL Playground](https://github.com/graphql/graphql-playground) is enabled
for the API. The Playground is accessible via the `/playground` endpoint
of the address set using the `bind` parameter. Note that the `playground`
endpoint will only be enabled if the `graphql` endpoint is also enabled.
"""
common: false
required: false
}
}
description: "API options."
warnings: ["The API has no authentication and exposes all event data flowing through Vector. It must not be exposed to untrusted clients."]
}
enrichment_tables: {
type: object: options: {
file: {
type: object: options: {
encoding: {
type: object: options: {
delimiter: {
type: string: default: ","
description: "The delimiter used to separate fields in each row of the CSV file."
required: false
}
include_headers: {
type: bool: default: true
description: """
Whether or not the file contains column headers.
When set to `true`, the first row of the CSV file will be read as the header row, and
the values will be used for the names of each column. This is the default behavior.
When set to `false`, columns are referred to by their numerical index.
"""
required: false
}
type: {
required: true
type: string: enum: csv: """
Decodes the file as a [CSV][csv] (comma-separated values) file.
[csv]: https://wikipedia.org/wiki/Comma-separated_values
"""
description: "File encoding type."
}
}
description: "File encoding configuration."
required: true
}
path: {
type: string: {}
description: """
The path of the enrichment table file.
Currently, only [CSV][csv] files are supported.
[csv]: https://en.wikipedia.org/wiki/Comma-separated_values
"""
required: true
}
}
description: "File-specific settings."
required: true
relevant_when: "type = \"file\""
}
schema: {
type: object: options: "*": {
type: string: {}
required: true
description: "Represents mapped log field names and types."
}
description: """
Key/value pairs representing mapped log field names and types.
This is used to coerce log fields from strings into their proper types. The available types are listed in the `Types` list below.
Timestamp coercions need to be prefaced with `timestamp|`, for example `"timestamp|%F"`. Timestamp specifiers can use either of the following:
1. One of the built-in-formats listed in the `Timestamp Formats` table below.
2. The [time format specifiers][chrono_fmt] from Rust’s `chrono` library.
Types
- **`bool`**
- **`string`**
- **`float`**
- **`integer`**
- **`date`**
- **`timestamp`** (see the table below for formats)
Timestamp Formats
| Format | Description | Example |
|----------------------|----------------------------------------------------------------------------------|----------------------------------|
| `%F %T` | `YYYY-MM-DD HH:MM:SS` | `2020-12-01 02:37:54` |
| `%v %T` | `DD-Mmm-YYYY HH:MM:SS` | `01-Dec-2020 02:37:54` |
| `%FT%T` | [ISO 8601][iso8601]/[RFC 3339][rfc3339], without time zone | `2020-12-01T02:37:54` |
| `%FT%TZ` | [ISO 8601][iso8601]/[RFC 3339][rfc3339], UTC | `2020-12-01T09:37:54Z` |
| `%+` | [ISO 8601][iso8601]/[RFC 3339][rfc3339], UTC, with time zone | `2020-12-01T02:37:54-07:00` |
| `%a, %d %b %Y %T` | [RFC 822][rfc822]/[RFC 2822][rfc2822], without time zone | `Tue, 01 Dec 2020 02:37:54` |
| `%a %b %e %T %Y` | [ctime][ctime] format | `Tue Dec 1 02:37:54 2020` |
| `%s` | [UNIX timestamp][unix_ts] | `1606790274` |
| `%a %d %b %T %Y` | [date][date] command, without time zone | `Tue 01 Dec 02:37:54 2020` |
| `%a %d %b %T %Z %Y` | [date][date] command, with time zone | `Tue 01 Dec 02:37:54 PST 2020` |
| `%a %d %b %T %z %Y` | [date][date] command, with numeric time zone | `Tue 01 Dec 02:37:54 -0700 2020` |
| `%a %d %b %T %#z %Y` | [date][date] command, with numeric time zone (minutes can be missing or present) | `Tue 01 Dec 02:37:54 -07 2020` |
[date]: https://man7.org/linux/man-pages/man1/date.1.html
[ctime]: https://www.cplusplus.com/reference/ctime
[unix_ts]: https://en.wikipedia.org/wiki/Unix_time
[rfc822]: https://tools.ietf.org/html/rfc822#section-5
[rfc2822]: https://tools.ietf.org/html/rfc2822#section-3.3
[iso8601]: https://en.wikipedia.org/wiki/ISO_8601
[rfc3339]: https://tools.ietf.org/html/rfc3339
[chrono_fmt]: https://docs.rs/chrono/latest/chrono/format/strftime/index.html#specifiers
"""
required: false
relevant_when: "type = \"file\""
}
flush_interval: {
type: uint: {}
description: """
The interval used for making writes visible in the table.
Longer intervals might get better performance,
but there is a longer delay before the data is visible in the table.
Since every TTL scan makes its changes visible, only use this value
if it is shorter than the `scan_interval`.
By default, all writes are made visible immediately.
"""
required: false
relevant_when: "type = \"memory\""
}
internal_metrics: {
type: object: options: include_key_tag: {
type: bool: default: false
description: """
Determines whether to include the key tag on internal metrics.
This is useful for distinguishing between different keys while monitoring. However, the tag's
cardinality is unbounded.
"""
required: false
}
description: "Configuration of internal metrics"
required: false
relevant_when: "type = \"memory\""
}
max_byte_size: {
type: uint: {}
description: """
Maximum size of the table in bytes. All insertions that make
this table bigger than the maximum size are rejected.
By default, there is no size limit.
"""
required: false
relevant_when: "type = \"memory\""
}
scan_interval: {
type: uint: default: 30
description: """
The scan interval used to look for expired records. This is provided
as an optimization to ensure that TTL is updated, but without doing
too many cache scans.
"""
required: false
relevant_when: "type = \"memory\""
}
source_config: {
type: object: options: {
export_batch_size: {
type: uint: {}
description: """
Batch size for data exporting. Used to prevent exporting entire table at
once and blocking the system.
By default, batches are not used and entire table is exported.
"""
required: false
}
export_expired_items: {
type: bool: default: false
description: """
Set to true to export expired items via the `expired` output port.
Expired items ignore other settings and are exported as they are flushed from the table.
"""
required: false
}
export_interval: {
type: uint: {}
description: "Interval for exporting all data from the table when used as a source."
required: false
}
remove_after_export: {
type: bool: default: false
description: """
If set to true, all data will be removed from cache after exporting.
Only valid if used as a source and export_interval > 0
By default, export will not remove data from cache
"""
required: false
}
source_key: {
type: string: {}
description: """
Key to use for this component when used as a source. This must be different from the
component key.
"""
required: true
}
}
description: "Configuration for source functionality."
required: false
relevant_when: "type = \"memory\""
}
ttl: {
type: uint: default: 600
description: """
TTL (time-to-live in seconds) is used to limit the lifetime of data stored in the cache.
When TTL expires, data behind a specific key in the cache is removed.
TTL is reset when the key is replaced.
"""
required: false
relevant_when: "type = \"memory\""
}
ttl_field: {
type: string: default: ""
description: "Field in the incoming value used as the TTL override."
required: false
relevant_when: "type = \"memory\""
}
locale: {
type: string: default: "en"
description: """
The locale to use when querying the database.
MaxMind includes localized versions of some of the fields within their database, such as
country name. This setting can control which of those localized versions are returned by the
transform.
More information on which portions of the geolocation data are localized, and what languages
are available, can be found [here][locale_docs].
[locale_docs]: https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data#h_01FRRGRYTGZB29ERDBZCX3MR8Q
"""
required: false
relevant_when: "type = \"geoip\""
}
path: {
type: string: {}
description: """
Path to the [MaxMind GeoIP2][geoip2] or [GeoLite2 binary city database file][geolite2]
(**GeoLite2-City.mmdb**).
Other databases, such as the country database, are not supported.
`mmdb` enrichment table can be used for other databases.
[geoip2]: https://dev.maxmind.com/geoip/geoip2/downloadable
[geolite2]: https://dev.maxmind.com/geoip/geoip2/geolite2/#Download_Access
"""
required: true
relevant_when: "type = \"geoip\" or type = \"mmdb\""
}
type: {
required: true
type: string: enum: {
file: "Exposes data from a static file as an enrichment table."
memory: """
Exposes data from a memory cache as an enrichment table. The cache can be written to using
a sink.
"""
geoip: """
Exposes data from a [MaxMind][maxmind] [GeoIP2][geoip2] database as an enrichment table.
[maxmind]: https://www.maxmind.com/
[geoip2]: https://www.maxmind.com/en/geoip2-databases
"""
mmdb: """
Exposes data from a [MaxMind][maxmind] database as an enrichment table.
[maxmind]: https://www.maxmind.com/
"""
}
description: "enrichment table type"
}
}
description: """
Configuration options for an [enrichment table](https://vector.dev/docs/reference/glossary/#enrichment-tables) to be used in a
[`remap`](https://vector.dev/docs/reference/configuration/transforms/remap/) transform. Currently supported are:
* [CSV](https://en.wikipedia.org/wiki/Comma-separated_values) files
* [MaxMind](https://www.maxmind.com/en/home) databases
* In-memory storage
For the lookup in the enrichment tables to be as performant as possible, the data is indexed according
to the fields that are used in the search. Note that indices can only be created for fields for which an
exact match is used in the condition. For range searches, an index isn't used and the enrichment table
drops back to a sequential scan of the data. A sequential scan shouldn't impact performance
significantly provided that there are only a few possible rows returned by the exact matches in the
condition. We don't recommend using a condition that uses only date range searches.
"""
common: false
required: false
}
secret: {
type: object: options: {
path: {
type: string: {}
description: "File path to read secrets from."
required: true
relevant_when: "type = \"file\" or type = \"directory\""
}
remove_trailing_whitespace: {
type: bool: default: false
description: "Remove trailing whitespace from file contents."
required: false
relevant_when: "type = \"directory\""
}
command: {
type: array: items: type: string: {}
description: """
Command arguments to execute.
The path to the script or binary must be the first argument.
"""
required: true
relevant_when: "type = \"exec\""
}
protocol: {
type: object: options: {
backend_config: {
type: "*": {}
description: """
The configuration to pass to the secrets executable. This is the `config` field in the
backend request. Refer to the documentation of your `backend_type `to see which options
are required to be set.
"""
required: false
relevant_when: "version = \"v1_1\""
}
backend_type: {
type: string: {}
description: "The name of the backend. This is `type` field in the backend request."
required: true
relevant_when: "version = \"v1_1\""
}
version: {
required: false
type: string: {
enum: {
v1: "Expect the command to fetch the configuration options itself."
v1_1: "Configuration options to the command are to be curried upon each request."
}
default: "v1"
}
description: "The protocol version."
}
}
description: "Settings for the protocol between Vector and the secrets executable."
required: false
relevant_when: "type = \"exec\""
}
timeout: {
type: uint: default: 5
description: "The timeout, in seconds, to wait for the command to complete."
required: false
relevant_when: "type = \"exec\""
}
auth: {
type: object: options: {
access_key_id: {
type: string: examples: ["AKIAIOSFODNN7EXAMPLE"]
description: "The AWS access key ID."
required: true
}
assume_role: {
type: string: examples: ["arn:aws:iam::123456789098:role/my_role"]
description: """
The ARN of an [IAM role][iam_role] to assume.
[iam_role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
"""
required: true
}
external_id: {
type: string: examples: ["randomEXAMPLEidString"]
description: """
The optional unique external ID in conjunction with role to assume.
[external_id]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
"""
required: false
}
region: {
type: string: examples: ["us-west-2"]
description: """
The [AWS region][aws_region] to send STS requests to.
If not set, this defaults to the configured region
for the service itself.
[aws_region]: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
"""
required: false
}
secret_access_key: {
type: string: examples: ["wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"]
description: "The AWS secret access key."
required: true
}
session_name: {
type: string: examples: ["vector-indexer-role"]
description: """
The optional [RoleSessionName][role_session_name] is a unique session identifier for your assumed role.
Should be unique per principal or reason.
If not set, the session name is autogenerated like assume-role-provider-1736428351340
[role_session_name]: https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
"""
required: false
}
session_token: {
type: string: examples: ["AQoDYXdz...AQoDYXdz..."]
description: """
The AWS session token.
See [AWS temporary credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
"""
required: false
}
credentials_file: {
type: string: examples: ["/my/aws/credentials"]
description: "Path to the credentials file."
required: true
}
profile: {
type: string: {
default: "default"
examples: ["develop"]
}
description: """
The credentials profile to use.
Used to select AWS credentials from a provided credentials file.
"""
required: false
}
imds: {
type: object: options: {
connect_timeout_seconds: {
type: uint: {
default: 1
unit: "seconds"
}
description: "Connect timeout for IMDS."
required: false
}
max_attempts: {
type: uint: default: 4
description: "Number of IMDS retries for fetching tokens and metadata."
required: false
}
read_timeout_seconds: {
type: uint: {
default: 1
unit: "seconds"
}
description: "Read timeout for IMDS."
required: false
}
}
description: "Configuration for authenticating with AWS through IMDS."
required: false
}
load_timeout_secs: {
type: uint: {
examples: [30]
unit: "seconds"
}
description: """
Timeout for successfully loading any credentials, in seconds.
Relevant when the default credentials chain or `assume_role` is used.
"""
required: false
}
}
description: "Configuration of the authentication strategy for interacting with AWS services."
required: false
relevant_when: "type = \"aws_secrets_manager\""
}
secret_id: {
type: string: {}
description: "ID of the secret to resolve."
required: true
relevant_when: "type = \"aws_secrets_manager\""
}
tls: {
type: object: options: {
alpn_protocols: {
type: array: items: type: string: examples: ["h2"]
description: """
Sets the list of supported ALPN protocols.
Declare the supported ALPN protocols, which are used during negotiation with a peer. They are prioritized in the order
that they are defined.
"""
required: false
}
ca_file: {
type: string: examples: ["/path/to/certificate_authority.crt"]
description: """
Absolute path to an additional CA certificate file.
The certificate must be in the DER or PEM (X.509) format. Additionally, the certificate can be provided as an inline string in PEM format.
"""
required: false
}
crt_file: {
type: string: examples: ["/path/to/host_certificate.crt"]
description: """
Absolute path to a certificate file used to identify this server.
The certificate must be in DER, PEM (X.509), or PKCS#12 format. Additionally, the certificate can be provided as
an inline string in PEM format.
If this is set _and_ is not a PKCS#12 archive, `key_file` must also be set.
"""
required: false
}
key_file: {
type: string: examples: ["/path/to/host_certificate.key"]
description: """
Absolute path to a private key file used to identify this server.
The key must be in DER or PEM (PKCS#8) format. Additionally, the key can be provided as an inline string in PEM format.
"""
required: false
}
key_pass: {
type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"]
description: """
Passphrase used to unlock the encrypted key file.
This has no effect unless `key_file` is set.
"""
required: false
}
server_name: {
type: string: examples: ["www.example.com"]
description: """
Server name to use when using Server Name Indication (SNI).
Only relevant for outgoing connections.
"""
required: false
}
verify_certificate: {
type: bool: {}
description: """
Enables certificate verification. For components that create a server, this requires that the
client connections have a valid client certificate. For components that initiate requests,
this validates that the upstream has a valid certificate.
If enabled, certificates must not be expired and must be issued by a trusted
issuer. This verification operates in a hierarchical manner, checking that the leaf certificate (the
certificate presented by the client/server) is not only valid, but that the issuer of that certificate is also valid, and
so on, until the verification process reaches a root certificate.
Do NOT set this to `false` unless you understand the risks of not verifying the validity of certificates.
"""
required: false
}
verify_hostname: {
type: bool: {}
description: """
Enables hostname verification.
If enabled, the hostname used to connect to the remote host must be present in the TLS certificate presented by
the remote host, either as the Common Name or as an entry in the Subject Alternative Name extension.
Only relevant for outgoing connections.
Do NOT set this to `false` unless you understand the risks of not verifying the remote hostname.
"""
required: false
}
}
description: "TLS configuration."
required: false
relevant_when: "type = \"aws_secrets_manager\""
}
endpoint: {
type: string: examples: ["http://127.0.0.0:5000/path/to/service"]
description: "Custom endpoint for use with AWS-compatible services."
required: false
relevant_when: "type = \"aws_secrets_manager\""
}
region: {
type: string: examples: ["us-east-1"]
description: """
The [AWS region][aws_region] of the target service.
[aws_region]: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
"""
required: false
relevant_when: "type = \"aws_secrets_manager\""
}
type: {
required: true
type: string: enum: {
file: "File."
directory: "Directory."
exec: "Exec."
aws_secrets_manager: "AWS Secrets Manager."
}
description: "secret type"
}
}
description: """
Configuration options to retrieve secrets from external backend in order to avoid storing secrets in plaintext
in Vector config. Multiple backends can be configured. Use `SECRET[<backend_name>.<secret_key>]` to tell Vector to retrieve the secret. This placeholder is replaced by the secret
retrieved from the relevant backend.
When `type` is `exec`, the provided command will be run and provided a list of
secrets to fetch, determined from the configuration file, on stdin as JSON in the format:
```json
{"version": "1.0", "secrets": ["secret1", "secret2"]}
```
The executable is expected to respond with the values of these secrets on stdout, also as JSON, in the format:
```json
{
"secret1": {"value": "secret_value", "error": null},
"secret2": {"value": null, "error": "could not fetch the secret"}
}
```
If an `error` is returned for any secrets, or if the command exits with a non-zero status code,
Vector will log the errors and exit.
Otherwise, the secret must be a JSON text string with key/value pairs. For example:
```json
{
"username": "test",
"password": "example-password"
}
```
If an error occurred while reading the file or retrieving the secrets, Vector logs the error and exits.
Secrets are loaded when Vector starts or if Vector receives a `SIGHUP` signal triggering its
configuration reload process.
"""
common: false
required: false
}
acknowledgements: {
common: true
description: """
Controls how acknowledgements are handled for all sinks by default.
See [End-to-end Acknowledgements][e2e_acks] for more information on how Vector handles event
acknowledgement.
[e2e_acks]: https://vector.dev/docs/architecture/end-to-end-acknowledgements/
"""
required: false
type: object: options: enabled: {
description: """
Controls whether or not end-to-end acknowledgements are enabled.
When enabled for a sink, any source that supports end-to-end
acknowledgements that is connected to that sink waits for events
to be acknowledged by **all connected sinks** before acknowledging them at the source.
Enabling or disabling acknowledgements at the sink level takes precedence over any global
[`acknowledgements`][global_acks] configuration.
[global_acks]: https://vector.dev/docs/reference/configuration/global-options/#acknowledgements
"""
required: false
type: bool: {}
}
}
buffer_utilization_ewma_half_life_seconds: {
description: """
The half-life, in seconds, for the exponential weighted moving average (EWMA) of source
and transform buffer utilization metrics.
This controls how quickly the `*_buffer_utilization_mean` gauges respond to new
observations. Longer half-lives retain more of the previous value, leading to slower
adjustments.
- Lower values (< 1): Metrics update quickly but may be volatile
- Default (5): Balanced between responsiveness and stability
- Higher values (> 5): Smooth, stable metrics that update slowly
Adjust based on whether you need fast detection of buffer issues (lower)
or want to see sustained trends without noise (higher).
Must be greater than 0.
"""
required: false
type: float: {}
}
data_dir: {
common: false
description: """
The directory used for persisting Vector state data.
This is the directory where Vector will store any state data, such as disk buffers, file
checkpoints, and more.
Vector must have write permissions to this directory.
"""
required: false
type: string: default: "/var/lib/vector/"
}
expire_metrics_per_metric_set: {
description: """
This allows configuring different expiration intervals for different metric sets.
By default this is empty and any metric not matched by one of these sets will use
the global default value, defined using `expire_metrics_secs`.
"""
required: false
type: array: items: type: object: options: {
expire_secs: {
description: """
The amount of time, in seconds, that internal metrics will persist after having not been
updated before they expire and are removed.
Set this to a value larger than your `internal_metrics` scrape interval (default 5 minutes)
so that metrics live long enough to be emitted and captured.
"""
required: true
type: float: examples: [60.0]
}
labels: {
description: "Labels to apply this expiration to. Ignores labels if not defined."
required: false
type: object: options: {
matchers: {
description: "List of matchers to check."
required: true
type: array: items: type: object: options: {
key: {
description: "Metric key to look for."
required: true
type: string: {}
}
type: {
description: "Metric label matcher type."
required: true
type: string: enum: {
exact: "Looks for an exact match of one label key value pair."
regex: "Compares label value with given key to the provided pattern."
}
}
value: {
description: "The exact metric label value."
relevant_when: "type = \"exact\""
required: true
type: string: {}
}
value_pattern: {
description: "Pattern to compare metric label value to."
relevant_when: "type = \"regex\""
required: true
type: string: {}
}
}
}
type: {
description: "Metric label group matcher type."
required: true
type: string: enum: {
all: "Checks that all of the provided matchers can be applied to given metric."
any: "Checks that any of the provided matchers can be applied to given metric."
}
}
}
}
name: {
description: "Metric name to apply this expiration to. Ignores metric name if not defined."
required: false
type: object: options: {
pattern: {
description: "Pattern to compare to."
relevant_when: "type = \"regex\""
required: true
type: string: {}
}
type: {
description: "Metric name matcher type."
required: true
type: string: enum: {
exact: "Only considers exact name matches."
regex: "Compares metric name to the provided pattern."
}
}
value: {
description: "The exact metric name."
relevant_when: "type = \"exact\""
required: true
type: string: {}
}
}
}
}
}
expire_metrics_secs: {
common: false
description: """
The amount of time, in seconds, that internal metrics will persist after having not been
updated before they expire and are removed.
Set this to a value larger than your `internal_metrics` scrape interval (default 5 minutes)
so metrics live long enough to be emitted and captured.
"""
required: false
type: float: {}
}
latency_ewma_alpha: {
description: """
The alpha value for the exponential weighted moving average (EWMA) of transform latency
metrics.
This controls how quickly the `component_latency_mean_seconds` gauge responds to new
observations. Values closer to 1.0 retain more of the previous value, leading to slower
adjustments. The default value of 0.9 is equivalent to a "half life" of 6-7 measurements.
Must be between 0 and 1 exclusively (0 < alpha < 1).
"""
required: false
type: float: {}
}
log_schema: {
common: false
description: """
Default log schema for all events.
This is used if a component does not have its own specific log schema. All events use a log
schema, whether or not the default is used, to assign event fields on incoming events.
"""
required: false
type: object: options: {
host_key: {
description: """
The name of the event field to treat as the host which sent the message.
This field will generally represent a real host, or container, that generated the message,
but is somewhat source-dependent.
"""
required: false
type: string: default: ".host"
}
message_key: {
description: """
The name of the event field to treat as the event message.
This would be the field that holds the raw message, such as a raw log line.
"""
required: false
type: string: default: ".message"
}
metadata_key: {
description: """
The name of the event field to set the event metadata in.
Generally, this field will be set by Vector to hold event-specific metadata, such as
annotations by the `remap` transform when an error or abort is encountered.
"""
required: false
type: string: default: ".metadata"
}
source_type_key: {
description: """
The name of the event field to set the source identifier in.
This field will be set by the Vector source that the event was created in.
"""
required: false
type: string: default: ".source_type"
}
timestamp_key: {
description: "The name of the event field to treat as the event timestamp."
required: false
type: string: default: ".timestamp"
}
}
}
metrics_storage_refresh_period: {
description: """
The interval, in seconds, at which the internal metrics cache for VRL is refreshed.
This must be set to be able to access metrics in VRL functions.
Higher values lead to stale metric values from `get_vector_metric`,
`find_vector_metrics`, and `aggregate_vector_metrics` functions.
"""
required: false
type: float: {}
}
proxy: {
common: false
description: """
Proxy configuration.
Configure to proxy traffic through an HTTP(S) proxy when making external requests.
Similar to common proxy configuration convention, you can set different proxies
to use based on the type of traffic being proxied. You can also set specific hosts that
should not be proxied.
"""
required: false
type: object: options: {
enabled: {
description: "Enables proxying support."
required: false
type: bool: default: true
}
http: {
description: """
Proxy endpoint to use when proxying HTTP traffic.
Must be a valid URI string.
"""
required: false
type: string: examples: ["http://foo.bar:3128"]
}
https: {
description: """
Proxy endpoint to use when proxying HTTPS traffic.
Must be a valid URI string.
"""