// See the file "COPYING" in the main distribution directory for copyright. #pragma once #include #include #include #include namespace zeek::telemetry { using LabelView = std::pair; namespace detail { /** * Builds a set of labels for prometheus based on a set of labels from * Zeek. This adds an 'endpoint' label if it's missing from the set. */ prometheus::Labels BuildPrometheusLabels(std::span labels); /** * Builds a full metric name for Prometheus from prefix, name, and unit values. */ std::string BuildFullPrometheusName(std::string_view prefix, std::string_view name, std::string_view unit, bool is_sum = false); } // namespace detail } // namespace zeek::telemetry