Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownExporter MetricExporterType = 0 OtlpGrpcTLSExporter MetricExporterType = 1 OtlpGrpcExporter MetricExporterType = 2 PrometheusExporter MetricExporterType = 3 OtlpGzipCompressions OTLPCompression = "gzip" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricExporterType ¶
type MetricExporterType int32
type OTLPCompression ¶
type OTLPCompression string
type OTLPMetrics ¶ added in v1.17.0
type OTLPMetrics interface { WithAPIKeyHeader() OTLPMetrics AddHeader(key, value string) OTLPMetrics WithHeaders(headers Headers) OTLPMetrics Endpoint(s string) OTLPMetrics WithTimeout(t time.Duration) OTLPMetrics WithReconnection(t time.Duration) OTLPMetrics WithCompression(c OTLPCompression) OTLPMetrics Provider() (shutdown func(context.Context) error, err error) }
func NewOTLPBuilder ¶ added in v1.12.0
func NewOTLPBuilder(cfg *configs.Configs, logger logging.Logger) OTLPMetrics
type PrometheusMetrics ¶ added in v1.17.0
type PrometheusMetrics interface { HTTPHandler() http.Handler Provider() (shutdown func(context.Context) error, err error) }
func NewPrometheus ¶
func NewPrometheus(cfg *configs.Configs, logger logging.Logger) PrometheusMetrics
Click to show internal directories.
Click to hide internal directories.