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
//! Loki sink
//!
//! This sink provides downstream support for `Loki` via
//! the (configurable) `/loki/api/v1/push` endpoint.
//!
//! <https://grafana.com/docs/loki/v2.6.x/api/>
//!
//! This sink uses `PartitionBatching` to partition events
//! by streams. There must be at least one valid set of labels.
//!
//! If an event produces no labels, this can happen if the template
//! does not match, we will add a default label `{agent="vector"}`.
mod config;
mod event;
mod healthcheck;
#[cfg(feature = "loki-integration-tests")]
#[cfg(test)]
mod integration_tests;
mod service;
mod sink;
#[cfg(test)]
mod tests;

#[cfg(feature = "loki-benches")]
pub use self::config::valid_label_name;
pub use self::config::{LokiConfig, OutOfOrderAction};