vector/sinks/loki/
mod.rs

1//! Loki sink
2//!
3//! This sink provides downstream support for `Loki` via
4//! the (configurable) `/loki/api/v1/push` endpoint.
5//!
6//! <https://grafana.com/docs/loki/v2.6.x/api/>
7//!
8//! This sink uses `PartitionBatching` to partition events
9//! by streams. There must be at least one valid set of labels.
10//!
11//! If an event produces no labels, this can happen if the template
12//! does not match, we will add a default label `{agent="vector"}`.
13mod config;
14mod event;
15mod healthcheck;
16#[cfg(feature = "loki-integration-tests")]
17#[cfg(test)]
18mod integration_tests;
19mod service;
20mod sink;
21#[cfg(test)]
22mod tests;
23
24#[cfg(feature = "loki-benches")]
25pub use self::config::valid_label_name;
26pub use self::config::{LokiConfig, OutOfOrderAction};