Documentation ¶
Index ¶
- func GetDebugCache(t controller.PrometheusCacheType) []byte
- func NewMetricLabelNameKey(metricID, labelNameID int) metricLabelNameKey
- type Cache
- type LabelKey
- type LayoutKey
- type MetricTargetKey
- type ORGCaches
- func (c *ORGCaches) GetORGIDToCache() cmap.ConcurrentMap[int, *Cache]
- func (c *ORGCaches) Init(ctx context.Context, cfg *prometheuscfg.Config)
- func (c *ORGCaches) NewCacheAndInitIfNotExist(orgID int) (*Cache, error)
- func (c *ORGCaches) Start(ctx context.Context, cfg *prometheuscfg.Config) error
- func (c *ORGCaches) Stop()
- type TargetKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDebugCache ¶
func GetDebugCache(t controller.PrometheusCacheType) []byte
func NewMetricLabelNameKey ¶
func NewMetricLabelNameKey(metricID, labelNameID int) metricLabelNameKey
Types ¶
type Cache ¶
type Cache struct { MetricName *metricName LabelName *labelName LabelValue *labelValue MetricAndAPPLabelLayout *metricAndAPPLabelLayout Target *target Label *label MetricLabelName *metricLabelName MetricTarget *metricTarget // contains filtered or unexported fields }
type LabelKey ¶
func NewLabelKey ¶
type LayoutKey ¶
type LayoutKey struct { MetricName string `json:"metric_name"` LabelName string `json:"label_name"` }
func NewLayoutKey ¶
type MetricTargetKey ¶
func NewMetricTargetKey ¶
func NewMetricTargetKey(metricName string, targetID int) MetricTargetKey
type ORGCaches ¶
type ORGCaches struct {
// contains filtered or unexported fields
}
func GetORGCaches ¶
func GetORGCaches() *ORGCaches
func (*ORGCaches) GetORGIDToCache ¶
func (c *ORGCaches) GetORGIDToCache() cmap.ConcurrentMap[int, *Cache]
func (*ORGCaches) NewCacheAndInitIfNotExist ¶
Click to show internal directories.
Click to hide internal directories.