# Packages
No description provided by the author
Package m3 is a generated GoMock package.
No description provided by the author
No description provided by the author
Package promremote implements storage interface backed by Prometheus remote write capable endpoints.
No description provided by the author
# 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.
FetchResultToPromResult converts fetch results from M3 to Prometheus result.
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.
NewFetchOptions creates a new fetch options.
NewMockStorage creates a new mock instance.
NewNoopStorage returns a fake implementation of Storage that rejects all writes and returns errors for all queries.
NewPromConvertOptions builds a new PromConvertOptions with default values.
NewWriteQuery returns a new write query after validating the options.
ParseErrorBehavior parses an error behavior.
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.
PromTimeSeriesToSeriesAttributes extracts the series info from a prometheus timeseries.
PromTimestampToTime converts a prometheus timestamp to time.Time.
PromTypeToM3 converts a prometheus label type to m3 matcher type.
SeriesAttributesToAnnotationPayload converts ts.SeriesAttributes into an annotation.Payload.
SeriesIteratorsToPromResult converts raw series iterators directly to a Prometheus-compatible 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 xtime.UnixNano to prometheus timestamp.
# Constants
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.
FanoutDefault defaults to the fanout option.
FanoutForceDisable forces disabling fanout.
FanoutForceEnable forces enabling fanout.
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.
# Structs
CompleteTagsQuery represents a query that returns an autocompleted set of tags.
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.
PromResult is a Prometheus-compatible result type.
QueryTimespan represents the start and end time of a query.
RelatedQueryOptions describes the timespan of any related queries the client might be making This is used to align the resolution of returned data across all queries.
RestrictByTag are specific restrictions to enforce behavior for given tags.
RestrictByType are specific restrictions to stick to a single data type.
RestrictQueryOptions restricts the query 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.
WriteQueryOptions is a set of options to use to construct a write query.
# Interfaces
Appender provides batched appends against a storage.
PromConvertOptions are options controlling the conversion of raw series iterators to a Prometheus-compatible result.
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
ErrorBehavior describes what this storage type should do on error.
FanoutOption describes the fanout option.
Type describes the type of storage.