aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/prometheus/prometheus.h
blob: f031f5e9338f0e4908b217c3ebc704589840ed18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once 
 
#include <library/cpp/monlib/encode/encoder.h> 
#include <library/cpp/monlib/encode/format.h> 
 
#include <util/generic/yexception.h> 
 
 
namespace NMonitoring { 
 
    class TPrometheusDecodeException: public yexception { 
    }; 
 
    IMetricEncoderPtr EncoderPrometheus(IOutputStream* out, TStringBuf metricNameLabel = "sensor");
 
    void DecodePrometheus(TStringBuf data, IMetricConsumer* c, TStringBuf metricNameLabel = "sensor");
 
}