object_store::layers

Function build_prometheus_metrics_layer

Source
pub fn build_prometheus_metrics_layer(_with_path_label: bool) -> PrometheusLayer
Expand description

This logical tries to extract parent path from the object storage operation the function also relies on assumption that the region path is built from pattern <data|index>/catalog/schema/table_id/... OR greptimedb/object_cache/<read|write>/...

We’ll get the data/catalog/schema from path.