vector/sources/
mod.rs

1#![allow(missing_docs)]
2use snafu::Snafu;
3
4#[cfg(feature = "sources-amqp")]
5pub mod amqp;
6#[cfg(feature = "sources-apache_metrics")]
7pub mod apache_metrics;
8#[cfg(feature = "sources-aws_ecs_metrics")]
9pub mod aws_ecs_metrics;
10#[cfg(feature = "sources-aws_kinesis_firehose")]
11pub mod aws_kinesis_firehose;
12#[cfg(feature = "sources-aws_s3")]
13pub mod aws_s3;
14#[cfg(feature = "sources-aws_sqs")]
15pub mod aws_sqs;
16#[cfg(feature = "sources-datadog_agent")]
17pub mod datadog_agent;
18#[cfg(feature = "sources-demo_logs")]
19pub mod demo_logs;
20#[cfg(feature = "sources-dnstap")]
21pub mod dnstap;
22#[cfg(feature = "sources-docker_logs")]
23pub mod docker_logs;
24#[cfg(feature = "sources-eventstoredb_metrics")]
25pub mod eventstoredb_metrics;
26#[cfg(feature = "sources-exec")]
27pub mod exec;
28#[cfg(feature = "sources-file")]
29pub mod file;
30#[cfg(any(
31    feature = "sources-stdin",
32    all(unix, feature = "sources-file_descriptor")
33))]
34pub mod file_descriptors;
35#[cfg(feature = "sources-fluent")]
36pub mod fluent;
37#[cfg(feature = "sources-gcp_pubsub")]
38pub mod gcp_pubsub;
39#[cfg(feature = "sources-heroku_logs")]
40pub mod heroku_logs;
41#[cfg(feature = "sources-host_metrics")]
42pub mod host_metrics;
43#[cfg(feature = "sources-http_client")]
44pub mod http_client;
45#[cfg(feature = "sources-http_server")]
46pub mod http_server;
47#[cfg(feature = "sources-internal_logs")]
48pub mod internal_logs;
49#[cfg(feature = "sources-internal_metrics")]
50pub mod internal_metrics;
51#[cfg(all(unix, feature = "sources-journald"))]
52pub mod journald;
53#[cfg(feature = "sources-kafka")]
54pub mod kafka;
55#[cfg(feature = "sources-kubernetes_logs")]
56pub mod kubernetes_logs;
57#[cfg(feature = "sources-logstash")]
58pub mod logstash;
59#[cfg(feature = "sources-mongodb_metrics")]
60pub mod mongodb_metrics;
61#[cfg(feature = "sources-mqtt")]
62pub mod mqtt;
63#[cfg(feature = "sources-nats")]
64pub mod nats;
65#[cfg(feature = "sources-nginx_metrics")]
66pub mod nginx_metrics;
67#[cfg(feature = "sources-opentelemetry")]
68pub mod opentelemetry;
69#[cfg(feature = "sources-postgresql_metrics")]
70pub mod postgresql_metrics;
71#[cfg(any(
72    feature = "sources-prometheus-scrape",
73    feature = "sources-prometheus-remote-write",
74    feature = "sources-prometheus-pushgateway"
75))]
76pub mod prometheus;
77#[cfg(feature = "sources-pulsar")]
78pub mod pulsar;
79#[cfg(feature = "sources-redis")]
80pub mod redis;
81#[cfg(feature = "sources-socket")]
82pub mod socket;
83#[cfg(feature = "sources-splunk_hec")]
84pub mod splunk_hec;
85#[cfg(feature = "sources-static_metrics")]
86pub mod static_metrics;
87#[cfg(feature = "sources-statsd")]
88pub mod statsd;
89#[cfg(feature = "sources-syslog")]
90pub mod syslog;
91#[cfg(feature = "sources-vector")]
92pub mod vector;
93#[cfg(feature = "sources-websocket")]
94pub mod websocket;
95
96pub mod util;
97
98pub use vector_lib::source::Source;
99
100#[allow(dead_code)] // Easier than listing out all the features that use this
101/// Common build errors
102#[derive(Debug, Snafu)]
103enum BuildError {
104    #[snafu(display("URI parse error: {}", source))]
105    UriParseError { source: ::http::uri::InvalidUri },
106}