Documentation ¶
Index ¶
- Constants
- type MetricService
- type MetricServiceOptions
- type Nozzle
- type Option
- type OtelServer
- type StreamConnector
- type TraceService
- type TraceServiceOptions
- func WithOtelTimerRollup(interval time.Duration, totalRollupTags, durationRollupTags []string) TraceServiceOptions
- func WithOtelTimerRollupBufferSize(size uint) TraceServiceOptions
- func WithTraceFiltering(allowListTags []string, filterToAppMetrics bool) TraceServiceOptions
- func WithTraceOtelDebugRegistrar(m metrics.Registrar) TraceServiceOptions
- func WithTraceOtelLogger(l *logger.Logger) TraceServiceOptions
Constants ¶
View Source
const ( BATCH_FLUSH_INTERVAL = 500 * time.Millisecond BATCH_CHANNEL_SIZE = 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricService ¶ added in v1.7.0
type MetricService struct { metricspb.MetricsServiceServer // contains filtered or unexported fields }
func NewMetricService ¶ added in v1.7.0
func NewMetricService(client *ingressclient.IngressClient, opts ...MetricServiceOptions) *MetricService
func (*MetricService) AllowListedMetric ¶ added in v1.7.0
func (s *MetricService) AllowListedMetric(tags map[string]string) bool
func (*MetricService) Export ¶ added in v1.7.0
func (s *MetricService) Export(_ context.Context, req *metricspb.ExportMetricsServiceRequest) (*metricspb.ExportMetricsServiceResponse, error)
Export processes received metric data.
func (*MetricService) StartListening ¶ added in v1.7.0
func (s *MetricService) StartListening()
func (*MetricService) Stop ¶ added in v1.7.0
func (s *MetricService) Stop()
type MetricServiceOptions ¶ added in v1.7.0
type MetricServiceOptions func(*MetricService)
func WithMetricFiltering ¶ added in v1.7.0
func WithMetricFiltering(allowListTags []string, filterToAppMetrics bool) MetricServiceOptions
func WithMetricOtelDebugRegistrar ¶ added in v1.7.0
func WithMetricOtelDebugRegistrar(m metrics.Registrar) MetricServiceOptions
func WithMetricOtelLogger ¶ added in v1.7.0
func WithMetricOtelLogger(l *logger.Logger) MetricServiceOptions
type Nozzle ¶
type Nozzle struct {
// contains filtered or unexported fields
}
Nozzle reads envelopes and writes points to metric-store.
type Option ¶ added in v1.4.3
type Option func(*Nozzle)
func WithNozzleLogger ¶
WithNozzleLogger returns a Option that configures a nozzle's logger. It defaults to silent logging.
func WithNozzleTimerRollup ¶
type OtelServer ¶ added in v1.7.0
type OtelServer struct {
// contains filtered or unexported fields
}
func NewOtelServer ¶ added in v1.7.0
func NewOtelServer( log *logger.Logger, ms *MetricService, ts *TraceService, ) *OtelServer
func (*OtelServer) Close ¶ added in v1.7.0
func (s *OtelServer) Close() error
type StreamConnector ¶
type StreamConnector interface { // Stream creates a EnvelopeStream for the given request. Stream(ctx context.Context, req *loggregator_v2.EgressBatchRequest) loggregator.EnvelopeStream }
StreamConnector reads envelopes from the the logs provider.
type TraceService ¶ added in v1.7.0
type TraceService struct { tracepb.TraceServiceServer // contains filtered or unexported fields }
func NewTraceService ¶ added in v1.7.0
func NewTraceService(client *ingressclient.IngressClient, nodeIndex int, opts ...TraceServiceOptions) *TraceService
func (*TraceService) Export ¶ added in v1.7.0
func (s *TraceService) Export(_ context.Context, req *tracepb.ExportTraceServiceRequest) (*tracepb.ExportTraceServiceResponse, error)
Function called with registry of TraceServiceServer
func (*TraceService) StartListening ¶ added in v1.7.0
func (s *TraceService) StartListening()
func (*TraceService) Stop ¶ added in v1.7.0
func (s *TraceService) Stop()
type TraceServiceOptions ¶ added in v1.7.0
type TraceServiceOptions func(*TraceService)
func WithOtelTimerRollup ¶ added in v1.7.0
func WithOtelTimerRollup(interval time.Duration, totalRollupTags, durationRollupTags []string) TraceServiceOptions
func WithOtelTimerRollupBufferSize ¶ added in v1.7.0
func WithOtelTimerRollupBufferSize(size uint) TraceServiceOptions
func WithTraceFiltering ¶ added in v1.7.0
func WithTraceFiltering(allowListTags []string, filterToAppMetrics bool) TraceServiceOptions
func WithTraceOtelDebugRegistrar ¶ added in v1.7.0
func WithTraceOtelDebugRegistrar(m metrics.Registrar) TraceServiceOptions
func WithTraceOtelLogger ¶ added in v1.7.0
func WithTraceOtelLogger(l *logger.Logger) TraceServiceOptions
Click to show internal directories.
Click to hide internal directories.