aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/prometheus/prometheus.h
diff options
context:
space:
mode:
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{});
}