Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaMetricSink ¶
type KafkaMetricSink struct {
// contains filtered or unexported fields
}
func NewKafkaMetricSink ¶
func NewKafkaMetricSink(logger *logrus.Logger, cl *trace.Client, brokers string, checkTopic string, eventTopic string, metricTopic string, ackRequirement string, partitioner string, retries int, bufferBytes int, bufferMessages int, bufferDuration string) (*KafkaMetricSink, error)
NewKafkaMetricSink creates a new Kafka Plugin.
func (*KafkaMetricSink) Flush ¶
func (k *KafkaMetricSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error
Flush sends a slice of metrics to Kafka
func (*KafkaMetricSink) FlushEventsChecks ¶
func (k *KafkaMetricSink) FlushEventsChecks(ctx context.Context, events []samplers.UDPEvent, checks []samplers.UDPServiceCheck)
FlushEventsChecks flushes Events and Checks
func (*KafkaMetricSink) Name ¶
func (k *KafkaMetricSink) Name() string
Name returns the name of this sink.
type KafkaSpanSink ¶
type KafkaSpanSink struct {
// contains filtered or unexported fields
}
func NewKafkaSpanSink ¶
func NewKafkaSpanSink(logger *logrus.Logger, cl *trace.Client, brokers string, topic string, partitioner string, ackRequirement string, retries int, bufferBytes int, bufferMessages int, bufferDuration string, serializationFormat string, sampleTag string, sampleRatePercentage int) (*KafkaSpanSink, error)
NewKafkaSpanSink creates a new Kafka Plugin.
func (*KafkaSpanSink) Flush ¶
func (k *KafkaSpanSink) Flush()
Flush emits metrics, since the spans have already been ingested and are sending async.
func (*KafkaSpanSink) Ingest ¶
func (k *KafkaSpanSink) Ingest(span *ssf.SSFSpan) error
Ingest takes the span and adds it to Kafka producer for async flushing. The flushing is driven by the settings from KafkaSpanSink's constructor. Tune the bytes, messages and interval settings to your tastes!
func (*KafkaSpanSink) Name ¶
func (k *KafkaSpanSink) Name() string
Name returns the name of this sink.
Click to show internal directories.
Click to hide internal directories.