influxdb

package
v0.0.0-...-9823ec8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package influxdb provides metric collector for Sonic

Index

Constants

View Source
const Namespace = "github.com/starvn/sonic/telemetry/influxdb"

Variables

View Source
var ErrNoConfig = errors.New("influxdb: unable to load custom config")

Functions

func New

func New(ctx context.Context, extraConfig config.ExtraConfig, metricsCollector *ginmetrics.Metrics, logger log.Logger) error

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer(size int) *Buffer

func (*Buffer) Add

func (b *Buffer) Add(ps ...client.BatchPoints)

func (*Buffer) Elements

func (b *Buffer) Elements() []client.BatchPoints

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL