influxdb

package module
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

README

Local dev

Start the influx container

$ docker run -p 8086:8086 \
	  -e INFLUXDB_DB=krakend \
	  -e INFLUXDB_USER=letgo -e INFLUXDB_USER_PASSWORD=pas5w0rd \
	  -e INFLUXDB_ADMIN_USER=admin -e INFLUXDB_ADMIN_PASSWORD=supersecretpassword \
	  -it --name=influx \
	  influxdb

and in a new terminal, open the CLI

$ docker exec -it influx influx

Grafana dashboard

$ docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \
  grafana/grafana

and import the dashboard grafana-dashboard.json

Documentation

Index

Constants

View Source
const Namespace = "github_com/letgoapp/krakend-influx"

Variables

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

Functions

func New

func New(ctx context.Context, extraConfig config.ExtraConfig, metricsCollector *ginmetrics.Metrics, logger logging.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