vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.82k stars 1.58k forks source link

feat(enrichment_tables): add json file support for enrichment tables #21312

Open altanozlu opened 1 month ago

altanozlu commented 1 month ago

A note for the community

Use Cases

Attempted Solutions

Proposal

[enrichment_tables.metadata]
type = "file"

[enrichment_tables.metadata.file]
path = "/etc/vector/consul_metadata.json"
encoding = { type = "json" }

json file:

[
{"ip": "0.0.0.0", "version": 0.1}, 
{"ip": "0.0.0.x", "version": 0.5}
]

References

No response

Version

vector 0.41.1 (x86_64-apple-darwin 745babd 2024-09-11 14:55:36.802851761)

jszwedko commented 1 month ago

Thanks @altanozlu ! I agree that this would be useful.