influxdb - ActiveState ActiveGo 1.8

Package influxdb

import ""

Overview ▾

Package influxdb is the root package of InfluxDB, the scalable datastore for metrics, events, and real-time analytics.

If you're looking for the Go HTTP client for InfluxDB, see package


ErrFieldTypeConflict is returned when a new field already exists with a different type.

var ErrFieldTypeConflict = errors.New("field type conflict")

func ErrDatabaseNotFound

func ErrDatabaseNotFound(name string) error

ErrDatabaseNotFound indicates that a database operation failed on the specified database because the specified database does not exist.

func ErrRetentionPolicyNotFound

func ErrRetentionPolicyNotFound(name string) error

ErrRetentionPolicyNotFound indicates that the named retention policy could not be found in the database.

func IsClientError

func IsClientError(err error) bool

IsClientError indicates whether an error is a known client error.

type Node

type Node struct {
    ID uint64
    // contains filtered or unexported fields

func LoadNode

func LoadNode(path string) (*Node, error)

LoadNode will load the node information from disk if present

func NewNode

func NewNode(path string) *Node

NewNode will return a new node

func (*Node) Save

func (n *Node) Save() error

Save will save the node file to disk and replace the existing one if present


Name Synopsis
client Package client implements a now-deprecated client for InfluxDB; use instead.
v2 Package client (v2) is the current official Go client for InfluxDB.
cmd Package cmd is the root package of the various command-line utilities for InfluxDB.
influx The influx command is a CLI client to InfluxDB.
cli Package cli contains the logic of the influx command line client.
influx_inspect The influx_inspect command displays detailed information about InfluxDB data files.
dumptsm Package dumptsm inspects low-level details about tsm1 files.
export Package export exports TSM files into InfluxDB line protocol format.
help Package help contains the help for the influx_inspect command.
report Package report reports statistics about TSM files.
verify Package verify verifies integrity of TSM files.
influx_stress Command influx_stress is deprecated; use instead.
influx_tsm Command influx_tsm converts b1 or bz1 shards (from InfluxDB releases earlier than v0.11) to the current tsm1 format.
b1 Package b1 reads data from b1 shards.
bz1 Package bz1 reads data from bz1 shards.
stats Package stats contains statistics for converting non-TSM shards to TSM.
tsdb Pacage tsdb abstracts the various shard types supported by the influx_tsm command.
influxd Command influxd is the InfluxDB server.
backup Package backup is the backup subcommand for the influxd command.
help Package help is the help subcommand of the influxd command.
restore Package restore is the restore subcommand for the influxd command, for restoring from a backup.
run Package run is the run (default) subcommand for the influxd command.
coordinator Package coordinator contains abstractions for writing points, executing statements, and accessing meta data.
v8 Package v8 contains code for importing data from 0.8 instances of InfluxDB.
influxql Package influxql implements a parser for the InfluxDB query language.
neldermead Package neldermead is an implementation of the Nelder-Mead optimization method.
models Package models implements basic objects used throughout the TICK stack.
monitor Package monitor provides a service and associated functionality for InfluxDB to self-monitor internal statistics and diagnostics.
diagnostics Package diagnostics provides the diagnostics type so that other packages can provide diagnostics without depending on the monitor package.
deep Package deep provides a deep equality check for use in tests.
escape Package escape contains utilities for escaping parts of InfluxQL and InfluxDB line protocol.
limiter Package limiter provides concurrency limiters.
pool Package pool provides pool structures to help reduce garbage collector pressure.
slices Package slices contains functions to operate on slices treated as sets.
collectd Package collectd provides a service for InfluxDB to ingest data via the collectd protocol.
continuous_querier Package continuous_querier provides the continuous query service.
graphite Package graphite provides a service for InfluxDB to ingest data via the graphite protocol.
httpd Package httpd implements the HTTP service and REST API for InfluxDB.
meta Package meta provides control over meta data for InfluxDB, such as controlling databases, retention policies, users, etc.
opentsdb Package opentsdb provides a service for InfluxDB to ingest data via the opentsdb protocol.
precreator Package precreator provides the shard precreation service.
retention Package retention provides the retention policy enforcement service.
snapshotter Package snapshotter provides the meta snapshot service.
subscriber Package subscriber implements the subscriber service to forward incoming data to remote services.
udp Package udp provides the UDP input service for InfluxDB.
tcp Package tcp provides a simple multiplexer over TCP.
toml Package toml adds support to marshal and unmarshal types not in the official TOML spec.
tsdb Package tsdb implements a durable time series database.
engine Package engine can be imported to initialize and register all available TSDB engines.
tsm1 Package tsm1 provides a TSDB in the Time Structured Merge tree format.
uuid Package uuid provides functions to create time-based UUIDs.