aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/prometheus/prometheus.h
diff options
context:
space:
mode:
authoraleksei-le <aleksei-le@yandex-team.com>2024-03-19 11:58:30 +0300
committeraleksei-le <aleksei-le@yandex-team.com>2024-03-19 12:19:04 +0300
commitd3a97480a3f641699d05912eff17b2c6d69bbd3f (patch)
tree0d27c27fef195d9d88ff94926906cfca1f4c908d /library/cpp/monlib/encode/prometheus/prometheus.h
parentd51da397df035468c58197c56f8e51097d5927ea (diff)
downloadydb-d3a97480a3f641699d05912eff17b2c6d69bbd3f.tar.gz
manage prometheus
a543f08a6f2957757c54b3f9e5a095389a51dbeb
Diffstat (limited to 'library/cpp/monlib/encode/prometheus/prometheus.h')
-rw-r--r--library/cpp/monlib/encode/prometheus/prometheus.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/library/cpp/monlib/encode/prometheus/prometheus.h b/library/cpp/monlib/encode/prometheus/prometheus.h
index 2e7fa31c28..c698299699 100644
--- a/library/cpp/monlib/encode/prometheus/prometheus.h
+++ b/library/cpp/monlib/encode/prometheus/prometheus.h
@@ -11,8 +11,17 @@ namespace NMonitoring {
class TPrometheusDecodeException: public yexception {
};
+ enum class EPrometheusDecodeMode {
+ DEFAULT,
+ RAW
+ };
+
+ struct TPrometheusDecodeSettings {
+ EPrometheusDecodeMode Mode{EPrometheusDecodeMode::DEFAULT};
+ };
+
IMetricEncoderPtr EncoderPrometheus(IOutputStream* out, TStringBuf metricNameLabel = "sensor");
- void DecodePrometheus(TStringBuf data, IMetricConsumer* c, TStringBuf metricNameLabel = "sensor");
+ void DecodePrometheus(TStringBuf data, IMetricConsumer* c, TStringBuf metricNameLabel = "sensor", const TPrometheusDecodeSettings& settings = TPrometheusDecodeSettings{});
}