package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/m3.git
Documentation: pkg.go.dev
# Functions
FetchOptionsToAggregateOptions converts a set of coordinator options as well as complete tags query to an M3 aggregate query option.
FetchOptionsToM3Options converts a set of coordinator options to M3 options.
FetchQueryToM3Query converts an m3coordinator fetch query to an M3 query.
FetchResultToBlockResult converts a fetch result into coordinator blocks.
FetchResultToPromResult converts fetch results from M3 to Prometheus result.
FromIdentTagIteratorToTags converts ident tags to coordinator tags.
FromM3IdentToMetric converts an M3 ident metric to a coordinator metric.
IsWarning determines if the given error coming from the storage is a warning, and returns it with appropriate wrapping.
NewCompleteTagsResultBuilder creates a new complete tags result builder.
NewFetchOptions creates a new fetch options.
NewMockStorage creates a new mock instance.
NewMultiBlockWrapper returns a block wrapper over an unconsolidated block.
NewMultiSeriesBlock returns a new unconsolidated block from a fetch result.
NewRestrictFetchOptionsFromProto returns a restrict fetch options from protobuf message.
NewUnconsolidatedStep returns an unconsolidated step with given values.
ParseErrorBehavior parses an error behavior.
ParseMetricsType parses a metric type.
PromLabelsToM3Tags converts Prometheus labels to M3 tags.
PromMatchersToM3 converts prometheus label matchers to m3 matchers.
PromMatcherToM3 converts a prometheus label matcher to m3 matcher.
PromReadQueryToM3 converts a prometheus read query to m3 read query.
PromSamplesToM3Datapoints converts Prometheus samples to M3 datapoints.
PromSamplesToM3DatapointsAnnotated converts Prometheus samples to M3 datapoints.
PromTimestampToTime converts a prometheus timestamp to time.Time.
PromTypeToM3 converts a prometheus label type to m3 matcher type.
PromWriteTSToM3 converts a prometheus write query to an M3 one.
SeriesIteratorsToFetchResult converts SeriesIterators into a fetch result.
SeriesToPromSamples series datapoints to prometheus samples.SeriesToPromSamples.
SeriesToPromTS converts a series to prometheus timeseries.
TagsToIdentTagIterator converts coordinator tags to ident tags.
TagsToPromLabels converts tags to prometheus labels.
TimeToPromTimestamp converts a time.Time to prometheus timestamp.
ValidateMetricsType validates a stored metrics type.
# Constants
AggregatedMetricsType is an aggregated metrics type.
BehaviorContainer is for storages that contain substorages.
BehaviorFail is for storages that should fail the entire query when queries against this storage fail.
BehaviorWarn is for storages that should only warn of incomplete results on failure.
DefaultMetricsType is the default metrics type value.
FanoutDefault defaults to the fanout option.
FanoutForceDisable forces disabling fanout.
FanoutForceEnable forces enabling fanout.
TypeDebug is for storages that are used for debugging purposes.
TypeLocalDC is for storages that reside in the local datacenter.
TypeMultiDC is for storages that will aggregate multiple datacenters.
TypeRemoteDC is for storages that reside in a remote datacenter.
UnaggregatedMetricsType is an unaggregated metrics type.
UnknownMetricsType is the unknown metrics type and is invalid.
# Structs
Attributes is a set of stored metrics attributes.
CompletedTag represents a tag retrieved by a complete tags query.
CompleteTagsQuery represents a query that returns an autocompleted set of tags.
CompleteTagsResult represents a set of autocompleted tag names and values.
Datapoint is a datapoint containing an annotation.
FanoutOptions describes which namespaces should be fanned out to for the query.
FetchOptions represents the options for fetch query.
FetchQuery represents the input query which is fetched from M3DB.
FetchResult provides a decompressed fetch result and meta information.
MockStorage is a mock of Storage interface.
MockStorageMockRecorder is the mock recorder for MockStorage.
RestrictFetchOptions restricts the fetch to a specific set of conditions.
SearchResults is the result from a search.
SeriesMatchQuery represents a query that returns a set of series that match the query.
WriteQuery represents the input timeseries that is written to the database.
# Interfaces
Appender provides batched appends against a storage.
CompleteTagsResultBuilder is a builder that accumulates and deduplicates incoming CompleteTagsResult values.
Querier handles queries against a storage.
Query is an interface for a M3DB query.
Storage provides an interface for reading and writing to the tsdb.
# Type aliases
Datapoints is a list of datapoints.
ErrorBehavior describes what this storage type should do on error.
FanoutOption describes the fanout option.
MetricsType is a type of stored metrics.
Type describes the type of storage.