diff options
| author | aleksei-le <[email protected]> | 2024-03-19 11:58:30 +0300 |
|---|---|---|
| committer | aleksei-le <[email protected]> | 2024-03-19 12:19:04 +0300 |
| commit | d3a97480a3f641699d05912eff17b2c6d69bbd3f (patch) | |
| tree | 0d27c27fef195d9d88ff94926906cfca1f4c908d /library/cpp/monlib/encode/prometheus/prometheus.h | |
| parent | d51da397df035468c58197c56f8e51097d5927ea (diff) | |
manage prometheus
a543f08a6f2957757c54b3f9e5a095389a51dbeb
Diffstat (limited to 'library/cpp/monlib/encode/prometheus/prometheus.h')
| -rw-r--r-- | library/cpp/monlib/encode/prometheus/prometheus.h | 11 |
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 2e7fa31c28c..c6982996990 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{}); } |
