package
0.0.0-20230207163005-6ee8545bf30d
Repository: https://github.com/timescale/promscale.git
Documentation: pkg.go.dev

# Functions

NewExemplarLabelsPosCache creates a cache of map[metric_name]LabelPositions where LabelPositions is map[LabelName]LabelPosition.
Cache is thread-safe.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Make the cache size the same as the metric size, assuming every metric has an exemplar.
No description provided by the author
No description provided by the author
No description provided by the author
this seems like a good default size for /active/ series.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
(metric, label key-pair) -> (label id,label position) cache Used when creating series to avoid DB calls for labels Each label position is unique for a specific metric, meaning that one label can have different position for different metrics.
No description provided by the author
No description provided by the author
MetricNameCache stores and retrieves metric table names in an in-memory cache.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
MetricCache provides a caching mechanism for metric table names.
No description provided by the author
SeriesCache is a cache of model.Series entries.