exporter

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package parser is for parsing the OpenTelemetry Collector configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilderFor

func BuilderFor(name string) parser.Builder

BuilderFor returns a parser builder for the given exporter name.

func For

func For(logger logr.Logger, name string, config map[interface{}]interface{}) (parser.ComponentPortParser, error)

For returns a new parser for the given exporter name + config.

func IsRegistered

func IsRegistered(name string) bool

IsRegistered checks whether a parser is registered with the given name.

func NewPrometheusExporterParser

func NewPrometheusExporterParser(logger logr.Logger, name string, config map[interface{}]interface{}) parser.ComponentPortParser

NewPrometheusExporterParser builds a new parser for OTLP receivers.

func Register

func Register(name string, builder parser.Builder)

Register adds a new parser builder to the list of known builders.

Types

type PrometheusExporterParser

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

PrometheusExporterParser parses the configuration for OTLP receivers.

func (*PrometheusExporterParser) ParserName

func (o *PrometheusExporterParser) ParserName() string

ParserName returns the name of this parser.

func (*PrometheusExporterParser) Ports

Ports returns all the service ports for all protocols in this parser.

Jump to

Keyboard shortcuts

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