mz_storage/metrics/
sink.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! Metrics for sinks.
11
12use mz_ore::metrics::MetricsRegistry;
13
14pub mod kafka;
15
16/// A set of base metrics that hang off a central metrics registry, labeled by the sink they
17/// belong to.
18#[derive(Debug, Clone)]
19pub(crate) struct SinkMetricDefs {
20    pub(crate) kafka_defs: kafka::KafkaSinkMetricDefs,
21}
22
23impl SinkMetricDefs {
24    pub(crate) fn register_with(registry: &MetricsRegistry) -> Self {
25        Self {
26            kafka_defs: kafka::KafkaSinkMetricDefs::register_with(registry),
27        }
28    }
29}