Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OtelMetricsToMetadata ¶ added in v0.51.0
func OtelMetricsToMetadata(md pmetric.Metrics, addMetricSuffixes bool) []*prompb.MetricMetadata
Types ¶
type ByLabelName ¶
ByLabelName enables the usage of sort.Sort() with a slice of labels
func (ByLabelName) Len ¶
func (a ByLabelName) Len() int
func (ByLabelName) Less ¶
func (a ByLabelName) Less(i, j int) bool
func (ByLabelName) Swap ¶
func (a ByLabelName) Swap(i, j int)
type PrometheusConverter ¶ added in v0.53.0
type PrometheusConverter struct {
// contains filtered or unexported fields
}
PrometheusConverter converts from OTel write format to Prometheus remote write format.
func NewPrometheusConverter ¶ added in v0.53.0
func NewPrometheusConverter() *PrometheusConverter
func (*PrometheusConverter) FromMetrics ¶ added in v0.53.0
func (c *PrometheusConverter) FromMetrics(md pmetric.Metrics, settings Settings) (errs error)
FromMetrics converts pmetric.Metrics to Prometheus remote write format.
func (*PrometheusConverter) TimeSeries ¶ added in v0.53.0
func (c *PrometheusConverter) TimeSeries() []prompb.TimeSeries
TimeSeries returns a slice of the prompb.TimeSeries that were converted from OTel format.
Click to show internal directories.
Click to hide internal directories.