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
- func ErrDatabaseNotFound(name string) error
- func ErrRetentionPolicyNotFound(name string) error
- func IsAuthorizationError(err error) bool
- func IsClientError(err error) bool
- type Node
Variables ¶
ErrFieldTypeConflict is returned when a new field already exists with a different type.
Functions ¶
func ErrDatabaseNotFound ¶
ErrDatabaseNotFound indicates that a database operation failed on the specified database because the specified database does not exist.
func ErrRetentionPolicyNotFound ¶
ErrRetentionPolicyNotFound indicates that the named retention policy could not be found in the database.
func IsAuthorizationError ¶
IsAuthorizationError indicates whether an error is due to an authorization failure
func IsClientError ¶
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 ¶
LoadNode will load the node information from disk if present
func NewNode ¶
NewNode will return a new node
func (*Node) Save ¶
Save will save the node file to disk and replace the existing one if present
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
client | Package client implements a now-deprecated client for InfluxDB; use github.com/influxdata/influxdb/client/v2 instead. |
client/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. |
cmd/influx | The influx command is a CLI client to InfluxDB. |
cmd/influx/cli | Package cli contains the logic of the influx command line client. |
cmd/influxd | Command influxd is the InfluxDB server. |
cmd/influxd/backup | Package backup implements both the backup and export subcommands for the influxd command. |
cmd/influxd/backup_util | |
cmd/influxd/backup_util/internal | |
cmd/influxd/help | Package help is the help subcommand of the influxd command. |
cmd/influxd/restore | Package restore is the restore subcommand for the influxd command, for restoring from a backup. |
cmd/influxd/run | Package run is the run (default) subcommand for the influxd command. |
cmd/influx_inspect | The influx_inspect command displays detailed information about InfluxDB data files. |
cmd/influx_inspect/buildtsi | Package 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/deletetsm | Package deletetsm bulk deletes a measurement from a raw tsm file. |
cmd/influx_inspect/dumptsi | Package dumptsi inspects low-level details about tsi1 files. |
cmd/influx_inspect/dumptsm | Package dumptsm inspects low-level details about tsm1 files. |
cmd/influx_inspect/dumptsmwal | Package dumptsmwal dumps all data from a WAL file. |
cmd/influx_inspect/export | Package export exports TSM files into InfluxDB line protocol format. |
cmd/influx_inspect/help | Package help contains the help for the influx_inspect command. |
cmd/influx_inspect/report | Package report reports statistics about TSM files. |
cmd/influx_inspect/reportdisk | Package report reports statistics about TSM files. |
cmd/influx_inspect/reporttsi | Package 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/seriesfile | Package seriesfile verifies integrity of series files. |
cmd/influx_inspect/verify/tombstone | Package tombstone verifies integrity of tombstones. |
cmd/influx_inspect/verify/tsm | Package tsm verifies integrity of TSM files. |
cmd/influx_tools | The 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/help | Package help is the help subcommand of the influxd command. |
cmd/influx_tools/importer | |
cmd/influx_tools/internal | |
cmd/influx_tools/server | |
coordinator | Package coordinator contains abstractions for writing points, executing statements, and accessing meta data. |
flux | |
flux/client | |
flux/init | Package init ensures all packages related to Flux built-ins are imported and initialized. |
flux/init/static | The 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/v8 | Package v8 contains code for importing data from 0.8 instances of InfluxDB. |
internal | |
kit | |
kit/check | Package check standardizes /health and /ready endpoints. |
kit/errors | |
kit/io | |
kit/metric | |
kit/platform | |
kit/platform/errors | |
kit/prom | Package prom provides a wrapper around a prometheus metrics registry so that all services are unified in how they expose prometheus metrics. |
kit/prom/promtest | Package promtest provides helpers for parsing and extracting prometheus metrics. |
kit/signals | |
kit/tracing | |
kit/tracing/testing | |
kit/transport | |
kit/transport/http | |
logger | |
mock | |
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. |
monitor/diagnostics | Package 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/deep | Package deep provides a deep equality check for use in tests. |
pkg/encoding | |
pkg/encoding/simple8b | Package simple8b implements the 64bit integer encoding algorithm as published by Ann and Moffat in "Index compression using 64-bit words", Softw. |
pkg/errors | |
pkg/escape | Package escape contains utilities for escaping parts of InfluxQL and InfluxDB line protocol. |
pkg/estimator | |
pkg/estimator/hll | Package 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/limiter | Package limiter provides concurrency limiters. |
pkg/metrics | Package metrics provides various measurements that are safe for concurrent access. |
pkg/mmap | Package mmap provides a way to memory-map a file. |
pkg/pool | Package pool provides pool structures to help reduce garbage collector pressure. |
pkg/pprofutil | |
pkg/radix | |
pkg/reporthelper | Package report reports statistics about TSM files. |
pkg/rhh | |
pkg/slices | Package slices contains functions to operate on slices treated as sets. |
pkg/snowflake | |
pkg/tar | |
pkg/testing | |
pkg/testing/assert | Package assert provides helper functions that can be used with the standard Go testing package. |
pkg/testttp | |
pkg/tlsconfig | |
pkg/tracing | Package tracing provides a way for capturing hierarchical traces. |
pkg/tracing/fields | |
pkg/tracing/labels | |
pkg/tracing/wire | Package wire is used to serialize a trace. |
prometheus | |
query | |
query/control | Package control keeps track of resources and manages queries. |
query/internal | |
query/neldermead | Package neldermead is an implementation of the Nelder-Mead optimization method. |
services | |
services/collectd | Package collectd provides a service for InfluxDB to ingest data via the collectd protocol. |
services/collectd/test_client | |
services/continuous_querier | Package continuous_querier provides the continuous query service. |
services/graphite | Package graphite provides a service for InfluxDB to ingest data via the graphite protocol. |
services/httpd | Package httpd implements the HTTP service and REST API for InfluxDB. |
services/meta | Package meta provides control over meta data for InfluxDB, such as controlling databases, retention policies, users, etc. |
services/meta/internal | |
services/opentsdb | Package opentsdb provides a service for InfluxDB to ingest data via the opentsdb protocol. |
services/precreator | Package precreator provides the shard precreation service. |
services/retention | Package retention provides the retention policy enforcement service. |
services/retention/helpers | |
services/snapshotter | Package snapshotter provides the meta snapshot service. |
services/storage | |
services/subscriber | Package subscriber implements the subscriber service to forward incoming data to remote services. |
services/udp | Package udp provides the UDP input service for InfluxDB. |
storage | |
storage/flux | |
storage/reads | |
storage/reads/datatypes | |
tcp | Package tcp provides a simple multiplexer over TCP. |
tests | This package is a set of convenience helpers and structs to make integration testing easier |
toml | Package toml adds support to marshal and unmarshal types not in the official TOML spec. |
_tools | |
_tools/tmpl | |
tsdb | |
tsdb/cursors | |
tsdb/cursors/mock | Package mock is a generated GoMock package. |
tsdb/engine | Package engine can be imported to initialize and register all available TSDB engines. |
tsdb/engine/tsm1 | Package tsm1 provides a TSDB in the Time Structured Merge tree format. |
tsdb/index | |
tsdb/index/inmem | Package inmem implements a shared, in-memory index for each database. |
tsdb/index/internal | |
tsdb/index/tsi1 | Package tsi1 provides a memory-mapped index implementation that supports high cardinality series. |
tsdb/internal | |
uuid | Package 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.