Documentation
¶
Index ¶
- Constants
- func CreateMetricSink(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.MetricSink, error)
- func CreateSpanSink(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.SpanSink, error)
- func MigrateConfig(conf *veneur.Config)
- func ParseMetricConfig(name string, config interface{}) (veneur.MetricSinkConfig, error)
- func ParseSpanConfig(name string, config interface{}) (veneur.SpanSinkConfig, error)
- type NewRelicMetricSink
- type NewRelicMetricSinkConfig
- type NewRelicSpanSink
- type NewRelicSpanSinkConfig
Constants ¶
const ( DefaultRegion = region.US DefaultEventType = "veneur" DefaultServiceCheckEventType = "veneurCheck" )
Variables ¶
This section is empty.
Functions ¶
func CreateMetricSink ¶ added in v14.2.0
func CreateMetricSink( server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, sinkConfig veneur.MetricSinkConfig, ) (sinks.MetricSink, error)
CreateMetricSink creates a new NewRelic sink for metrics. This function should match the signature of a value in veneur.MetricSinkTypes, and is intended to be passed into veneur.NewFromConfig to be called based on the provided configuration.
func CreateSpanSink ¶ added in v14.2.0
func CreateSpanSink( server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, sinkConfig veneur.SpanSinkConfig, ) (sinks.SpanSink, error)
CreateSpanSink creates a new New Relic sink for spans. This function should match the signature of a value in veneur.SpanSinkTypes, and is intended to be passed into veneur.NewFromConfig to be called based on the provided configuration.
func MigrateConfig ¶ added in v14.2.0
TODO(arnavdugar): Remove this once the old configuration format has been removed.
func ParseMetricConfig ¶ added in v14.2.0
func ParseMetricConfig( name string, config interface{}, ) (veneur.MetricSinkConfig, error)
ParseConfig decodes the map config for a NewRelic sink into a NewRelicSinkConfig struct.
func ParseSpanConfig ¶ added in v14.2.0
func ParseSpanConfig( name string, config interface{}, ) (veneur.SpanSinkConfig, error)
ParseSpanConfig decodes the map config for a New Relic span sink into a NewRelicSpanSinkConfig struct.
Types ¶
type NewRelicMetricSink ¶
type NewRelicMetricSink struct {
// contains filtered or unexported fields
}
func (*NewRelicMetricSink) Flush ¶
func (nr *NewRelicMetricSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error
func (*NewRelicMetricSink) FlushOtherSamples ¶
func (nr *NewRelicMetricSink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)
func (*NewRelicMetricSink) Name ¶
func (nr *NewRelicMetricSink) Name() string
Name returns the name of the sink
type NewRelicMetricSinkConfig ¶ added in v14.2.0
type NewRelicSpanSink ¶
type NewRelicSpanSink struct {
// contains filtered or unexported fields
}
func (*NewRelicSpanSink) Flush ¶
func (nr *NewRelicSpanSink) Flush()
Flush signals for the sink to send data to New Relic
func (*NewRelicSpanSink) Ingest ¶
func (nr *NewRelicSpanSink) Ingest(ssfSpan *ssf.SSFSpan) error
Ingest takes a span and records it in the New Relic telemetery format to be sent to New Relic on the next Flush()
func (*NewRelicSpanSink) Name ¶
func (nr *NewRelicSpanSink) Name() string
Name returns the name of the sink
type NewRelicSpanSinkConfig ¶ added in v14.2.0
type NewRelicSpanSinkConfig struct { CommonTags []string `yaml:"common_tags"` InsertKey util.StringSecret `yaml:"insert_key"` TraceObserverURL string `yaml:"trace_observer_url"` }