Documentation ¶
Index ¶
- Constants
- type DPClient
- type SignalFxSink
- func (sfx *SignalFxSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error
- func (sfx *SignalFxSink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)
- func (sfx *SignalFxSink) Name() string
- func (sfx *SignalFxSink) SetExcludedTags(excludes []string)
- func (sfx *SignalFxSink) Start(traceClient *trace.Client) error
Constants ¶
View Source
const EventDescriptionMaxLength = 256
View Source
const EventNameMaxLength = 256
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DPClient ¶
A DPClient is a client that can be used to submit signalfx data points to an upstream consumer. It wraps the dpsink.Sink interface.
type SignalFxSink ¶
type SignalFxSink struct {
// contains filtered or unexported fields
}
SignalFxSink is a MetricsSink implementation.
func NewSignalFxSink ¶
func NewSignalFxSink(hostnameTag string, hostname string, commonDimensions map[string]string, log *logrus.Logger, client DPClient, varyBy string, perTagClients map[string]DPClient, metricNamePrefixDrops []string, metricTagPrefixDrops []string, derivedMetrics samplers.DerivedMetricsProcessor, maxPointsInBatch int, defaultToken string, enableDynamicPerTagTokens bool, dynamicKeyRefreshPeriod time.Duration, metricsEndpoint string, apiEndpoint string, httpClient *http.Client) (*SignalFxSink, error)
NewSignalFxSink creates a new SignalFx sink for metrics.
func (*SignalFxSink) Flush ¶
func (sfx *SignalFxSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error
Flush sends metrics to SignalFx
func (*SignalFxSink) FlushOtherSamples ¶
func (sfx *SignalFxSink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)
FlushOtherSamples sends events to SignalFx. Event type samples will be serialized as SFX Events directly. All other metric types are ignored
func (*SignalFxSink) Name ¶
func (sfx *SignalFxSink) Name() string
Name returns the name of this sink.
func (*SignalFxSink) SetExcludedTags ¶
func (sfx *SignalFxSink) SetExcludedTags(excludes []string)
SetExcludedTags sets the excluded tag names. Any tags with the provided key (name) will be excluded.
Click to show internal directories.
Click to hide internal directories.