Documentation ¶
Overview ¶
Package exporterparser provides support for parsing and creating the respective exporters given a YAML configuration payload. For now it currently only provides statically imported OpenCensus exporters like:
- Stackdriver Tracing and Monitoring
- DataDog
- Zipkin
Index ¶
- Constants
- func DatadogTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func JaegerExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func KafkaExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func OpenCensusTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func PrometheusExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func StackdriverTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- func ZipkinExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, ...)
- type ZipkinConfig
Constants ¶
const ( DefaultZipkinEndpointHostPort = "localhost:9411" DefaultZipkinEndpointURL = "http://" + DefaultZipkinEndpointHostPort + "/api/v2/spans" )
Default values for Zipkin endpoint.
Variables ¶
This section is empty.
Functions ¶
func DatadogTraceExportersFromYAML ¶
func DatadogTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
DatadogTraceExportersFromYAML parses the yaml bytes and returns an exporter.TraceExporter targeting Datadog according to the configuration settings.
func JaegerExportersFromYAML ¶
func JaegerExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
JaegerExportersFromYAML parses the yaml bytes and returns exporter.TraceExporters targeting Jaeger according to the configuration settings.
func KafkaExportersFromYAML ¶ added in v0.0.3
func KafkaExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
KafkaExportersFromYAML parses the yaml bytes and returns an exporter.TraceExporter targeting Kafka according to the configuration settings.
func OpenCensusTraceExportersFromYAML ¶ added in v0.0.4
func OpenCensusTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
OpenCensusTraceExportersFromYAML parses the yaml bytes and returns an exporter.TraceExporter targeting OpenCensus Agent/Collector according to the configuration settings.
func PrometheusExportersFromYAML ¶ added in v0.1.0
func PrometheusExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
PrometheusExportersFromYAML parses the yaml bytes and returns exporter.MetricsExporters targeting Prometheus according to the configuration settings. It allows HTTP clients to scrape it on endpoint path "/metrics".
func StackdriverTraceExportersFromYAML ¶
func StackdriverTraceExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
StackdriverTraceExportersFromYAML parses the yaml bytes and returns an exporter.TraceExporter targeting Stackdriver according to the configuration settings.
func ZipkinExportersFromYAML ¶
func ZipkinExportersFromYAML(config []byte) (tes []exporter.TraceExporter, mes []exporter.MetricsExporter, doneFns []func() error, err error)
ZipkinExportersFromYAML parses the yaml bytes and returns an exporter.TraceExporter targeting Zipkin according to the configuration settings.
Types ¶
type ZipkinConfig ¶
type ZipkinConfig struct { ServiceName string `yaml:"service_name,omitempty"` Endpoint string `yaml:"endpoint,omitempty"` LocalEndpointURI string `yaml:"local_endpoint,omitempty"` UploadPeriod *time.Duration `yaml:"upload_period,omitempty"` }
ZipkinConfig holds the configuration of a Zipkin exporter.
func (*ZipkinConfig) EndpointURL ¶
func (zc *ZipkinConfig) EndpointURL() string
EndpointURL returns the endpoint URL of the Zipkin configuration.