metrics

package
v0.0.0-...-d0e73bb Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package metrics creates envoy grpc metricsserver. It will collect metrics, convert them from prometheus to OTLP. It will then push the OTLP metric onto the next component in an OTLP pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

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

Receiver is the metrics implementation for an envoy metrics receiver.

func New

func New(nextConsumer consumer.Metrics, logger *zap.Logger) *Receiver

New creates a new Receiver reference.

func (*Receiver) Register

func (r *Receiver) Register(g *grpc.Server)

Register will register the MetricsServiceServer on the provided grpc Server.

func (*Receiver) StreamMetrics

StreamMetrics implements the envoy MetricsServiceServer method StreamMetrics. It will consume the envoy prometheus metrics and write them to the nextConsumer.

Jump to

Keyboard shortcuts

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