Documentation ¶
Overview ¶
Package parser is for parsing the OpenTelemetry Collector configuration.
Index ¶
- func BuilderFor(name string) parser.Builder
- func For(logger logr.Logger, name string, config map[interface{}]interface{}) (parser.ComponentPortParser, error)
- func IsRegistered(name string) bool
- func NewPrometheusExporterParser(logger logr.Logger, name string, config map[interface{}]interface{}) parser.ComponentPortParser
- func Register(name string, builder parser.Builder)
- type PrometheusExporterParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderFor ¶
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 ¶
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.
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 ¶
func (o *PrometheusExporterParser) Ports() ([]corev1.ServicePort, error)
Ports returns all the service ports for all protocols in this parser.
Click to show internal directories.
Click to hide internal directories.