vector_vrl_metrics/
lib.rs

1#![deny(warnings)]
2
3use vrl::compiler::Function;
4
5mod aggregate_vector_metrics;
6mod common;
7mod find_vector_metrics;
8mod get_vector_metric;
9pub use common::MetricsStorage;
10
11pub(crate) const VECTOR_METRICS_EXPLAINER: &str = "\
12Internal Vector metrics functions work with a snapshot of the metrics. The interval at which \
13the snapshot is updated is controlled through the \
14`metrics_storage_refresh_period` (/docs/reference/configuration/global-options/#metrics_storage_refresh_period) \
15global option. Higher values can reduce performance impact of that process, but may cause \
16stale metrics data in the snapshot.";
17
18pub fn all() -> Vec<Box<dyn Function>> {
19    vec![
20        Box::new(get_vector_metric::GetVectorMetric) as _,
21        Box::new(find_vector_metrics::FindVectorMetrics) as _,
22        Box::new(aggregate_vector_metrics::AggregateVectorMetrics) as _,
23    ]
24}