influxdb – github.com/influxdata/influxdb Index | Files | Directories

package influxdb

import "github.com/influxdata/influxdb"

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 github.com/influxdata/influxdb/client/v2.

Index

Variables

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

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

Functions

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 IsAuthorizationError

func IsAuthorizationError(err error) bool

IsAuthorizationError indicates whether an error is due to an authorization failure

func IsClientError

func IsClientError(err error) bool

IsClientError indicates whether an error is a known client error.

Types

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

Source Files

errors.go influxdb.go node.go

Directories

PathSynopsis
clientPackage client implements a now-deprecated client for InfluxDB; use github.com/influxdata/influxdb/client/v2 instead.
client/v2Package client (v2) is the current official Go client for InfluxDB.
cmdPackage cmd is the root package of the various command-line utilities for InfluxDB.
cmd/influxThe influx command is a CLI client to InfluxDB.
cmd/influx/cliPackage cli contains the logic of the influx command line client.
cmd/influxdCommand influxd is the InfluxDB server.
cmd/influxd/backupPackage backup implements both the backup and export subcommands for the influxd command.
cmd/influxd/backup_util
cmd/influxd/backup_util/internal
cmd/influxd/helpPackage help is the help subcommand of the influxd command.
cmd/influxd/restorePackage restore is the restore subcommand for the influxd command, for restoring from a backup.
cmd/influxd/runPackage run is the run (default) subcommand for the influxd command.
cmd/influx_inspectThe influx_inspect command displays detailed information about InfluxDB data files.
cmd/influx_inspect/buildtsiPackage buildtsi reads an in-memory index and exports it as a TSI index.
cmd/influx_inspect/cardinality
cmd/influx_inspect/cardinality/aggregators
cmd/influx_inspect/deletetsmPackage deletetsm bulk deletes a measurement from a raw tsm file.
cmd/influx_inspect/dumptsiPackage dumptsi inspects low-level details about tsi1 files.
cmd/influx_inspect/dumptsmPackage dumptsm inspects low-level details about tsm1 files.
cmd/influx_inspect/dumptsmwalPackage dumptsmwal dumps all data from a WAL file.
cmd/influx_inspect/exportPackage export exports TSM files into InfluxDB line protocol format.
cmd/influx_inspect/helpPackage help contains the help for the influx_inspect command.
cmd/influx_inspect/reportPackage report reports statistics about TSM files.
cmd/influx_inspect/reportdiskPackage report reports statistics about TSM files.
cmd/influx_inspect/reporttsiPackage reporttsi provides a report about the series cardinality in one or more TSI indexes.
cmd/influx_inspect/type_conflicts
cmd/influx_inspect/verify
cmd/influx_inspect/verify/seriesfilePackage seriesfile verifies integrity of series files.
cmd/influx_inspect/verify/tombstonePackage tombstone verifies integrity of tombstones.
cmd/influx_inspect/verify/tsmPackage tsm verifies integrity of TSM files.
cmd/influx_toolsThe influx_tools command displays detailed information about InfluxDB data files.
cmd/influx_tools/compact
cmd/influx_tools/export
cmd/influx_tools/generate
cmd/influx_tools/generate/exec
cmd/influx_tools/generate/init
cmd/influx_tools/helpPackage help is the help subcommand of the influxd command.
cmd/influx_tools/importer
cmd/influx_tools/internal
cmd/influx_tools/server
coordinatorPackage coordinator contains abstractions for writing points, executing statements, and accessing meta data.
flux
flux/client
flux/initPackage init ensures all packages related to Flux built-ins are imported and initialized.
flux/init/staticThe init/static package can be imported in test cases and other uses cases where it is okay to always initialize flux.
flux/stdlib
flux/stdlib/influxdata
flux/stdlib/influxdata/influxdb
flux/stdlib/influxdata/influxdb/v1
importer
importer/v8Package v8 contains code for importing data from 0.8 instances of InfluxDB.
internal
kit
kit/checkPackage check standardizes /health and /ready endpoints.
kit/errors
kit/io
kit/metric
kit/platform
kit/platform/errors
kit/promPackage prom provides a wrapper around a prometheus metrics registry so that all services are unified in how they expose prometheus metrics.
kit/prom/promtestPackage promtest provides helpers for parsing and extracting prometheus metrics.
kit/signals
kit/tracing
kit/tracing/testing
kit/transport
kit/transport/http
logger
mock
modelsPackage models implements basic objects used throughout the TICK stack.
monitorPackage monitor provides a service and associated functionality for InfluxDB to self-monitor internal statistics and diagnostics.
monitor/diagnosticsPackage diagnostics provides the diagnostics type so that other packages can provide diagnostics without depending on the monitor package.
pkg
pkg/binaryutil
pkg/bloom
pkg/bytesutil
pkg/data
pkg/data/gen
pkg/data/gensyncmap
pkg/deepPackage deep provides a deep equality check for use in tests.
pkg/encoding
pkg/encoding/simple8bPackage simple8b implements the 64bit integer encoding algorithm as published by Ann and Moffat in "Index compression using 64-bit words", Softw.
pkg/errors
pkg/escapePackage escape contains utilities for escaping parts of InfluxQL and InfluxDB line protocol.
pkg/estimator
pkg/estimator/hllPackage hll contains a HyperLogLog++ with a LogLog-Beta bias correction implementation that is adapted (mostly copied) from an implementation provided by Clark DuVall github.com/clarkduvall/hyperloglog.
pkg/file
pkg/limiterPackage limiter provides concurrency limiters.
pkg/metricsPackage metrics provides various measurements that are safe for concurrent access.
pkg/mmapPackage mmap provides a way to memory-map a file.
pkg/poolPackage pool provides pool structures to help reduce garbage collector pressure.
pkg/pprofutil
pkg/radix
pkg/reporthelperPackage report reports statistics about TSM files.
pkg/rhh
pkg/slicesPackage slices contains functions to operate on slices treated as sets.
pkg/snowflake
pkg/tar
pkg/testing
pkg/testing/assertPackage assert provides helper functions that can be used with the standard Go testing package.
pkg/testttp
pkg/tlsconfig
pkg/tracingPackage tracing provides a way for capturing hierarchical traces.
pkg/tracing/fields
pkg/tracing/labels
pkg/tracing/wirePackage wire is used to serialize a trace.
prometheus
query
query/controlPackage control keeps track of resources and manages queries.
query/internal
query/neldermeadPackage neldermead is an implementation of the Nelder-Mead optimization method.
services
services/collectdPackage collectd provides a service for InfluxDB to ingest data via the collectd protocol.
services/collectd/test_client
services/continuous_querierPackage continuous_querier provides the continuous query service.
services/graphitePackage graphite provides a service for InfluxDB to ingest data via the graphite protocol.
services/httpdPackage httpd implements the HTTP service and REST API for InfluxDB.
services/metaPackage meta provides control over meta data for InfluxDB, such as controlling databases, retention policies, users, etc.
services/meta/internal
services/opentsdbPackage opentsdb provides a service for InfluxDB to ingest data via the opentsdb protocol.
services/precreatorPackage precreator provides the shard precreation service.
services/retentionPackage retention provides the retention policy enforcement service.
services/retention/helpers
services/snapshotterPackage snapshotter provides the meta snapshot service.
services/storage
services/subscriberPackage subscriber implements the subscriber service to forward incoming data to remote services.
services/udpPackage udp provides the UDP input service for InfluxDB.
storage
storage/flux
storage/reads
storage/reads/datatypes
tcpPackage tcp provides a simple multiplexer over TCP.
testsThis package is a set of convenience helpers and structs to make integration testing easier
tomlPackage toml adds support to marshal and unmarshal types not in the official TOML spec.
_tools
_tools/tmpl
tsdb
tsdb/cursors
tsdb/cursors/mockPackage mock is a generated GoMock package.
tsdb/enginePackage engine can be imported to initialize and register all available TSDB engines.
tsdb/engine/tsm1Package tsm1 provides a TSDB in the Time Structured Merge tree format.
tsdb/index
tsdb/index/inmemPackage inmem implements a shared, in-memory index for each database.
tsdb/index/internal
tsdb/index/tsi1Package tsi1 provides a memory-mapped index implementation that supports high cardinality series.
tsdb/internal
uuidPackage uuid provides functions to create time-based UUIDs.
Version
v1.12.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
2 days ago

Tools for package owners.