prometheus

package
v0.0.0-...-b413d93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package prometheus implements a metric collector backend.MetricCollector client interface for the prometheus metric collector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusMetricCollector

type PrometheusMetricCollector struct {
	// contains filtered or unexported fields
}

PrometheusMetricCollector implements the runtime backend instance that implements the backend/metric.MetricCollector interface.

func NewPrometheusMetricCollector

func NewPrometheusMetricCollector(ctx context.Context, addr string) (*PrometheusMetricCollector, error)

Returns a new instance of PrometheusMetricCollector. Configures opentelemetry to export metrics to a Prometheus server hosted at address `addr`.

func (*PrometheusMetricCollector) GetMetricProvider

func (p *PrometheusMetricCollector) GetMetricProvider(ctx context.Context) (metric.MeterProvider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL