Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerMetricFetcher ¶
type DopplerPool ¶
type DopplerPool interface { RegisterDoppler(addr string) Subscribe(dopplerAddr string, ctx context.Context, req *loggregator_v2.EgressBatchRequest) (loggregator_v2.Egress_BatchedReceiverClient, error) Close(dopplerAddr string) }
DopplerPool creates a pool of doppler gRPC connections
type EnvelopeConverter ¶
type EnvelopeConverter interface {
Convert(data []byte, usePreferredTags bool) (*v2.Envelope, error)
}
func NewConverter ¶
func NewConverter() EnvelopeConverter
type GRPCConnector ¶
type GRPCConnector struct {
// contains filtered or unexported fields
}
GRPCConnector establishes GRPC connections to dopplers and allows calls to Firehose, Stream, etc to be reduced down to a single Receiver.
func NewGRPCConnector ¶
func NewGRPCConnector( bufferSize int, pool DopplerPool, f Finder, m MetricClient, ) *GRPCConnector
NewGRPCConnector creates a new GRPCConnector.
type MetricClient ¶
type MetricClient interface {
NewCounter(name string, opts ...metricemitter.MetricOption) *metricemitter.Counter
}
MetricClient creates new CounterMetrics to be emitted periodically.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) RegisterDoppler ¶
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func NewQuerier(c EnvelopeConverter, f ContainerMetricFetcher) *Querier
Click to show internal directories.
Click to hide internal directories.