package
2.1.0-alpha.20180416+incompatible
Repository: https://github.com/coyle/cockroach.git
Documentation: pkg.go.dev
# Functions
DecodeDataKey decodes a time series key into its components.
MakeDataKey creates a time series data key for the given series name, source, Resolution and timestamp.
MakeServer instantiates a new Server which services requests with data from the supplied DB.
NewDB creates a new DB instance.
NewTimeSeriesMetrics creates a new instance of TimeSeriesMetrics.
# Constants
Resolution10s stores data with a sample resolution of 10 seconds.
URLPrefix is the prefix for all time series endpoints hosted by the server.
# Variables
Resolution10StoreDuration defines the amount of time to store internal metrics.
TimeseriesStorageEnabled controls whether to store timeseries data to disk.
# Structs
DB provides Cockroach's Time Series API.
Server handles incoming external requests related to time series data.
ServerConfig provides a means for tests to override settings in the time series server.
TimeSeriesMetrics contains metrics relevant to the time series system.
# Interfaces
A DataSource can be queryied for a slice of time series data.
# Type aliases
ClusterNodeCountFn is a function that returns the number of nodes active on the cluster.
Resolution is used to enumerate the different resolution values supported by Cockroach.