status

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStatsFunc

type GetStatsFunc func(r *http.Request, statsByLabelName string) ([]TenantStats, *api.ApiError)

type Options

type Options struct {
	GetStats GetStatsFunc
	Registry *prometheus.Registry
}

type StatusAPI

type StatusAPI struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *StatusAPI

func (*StatusAPI) Register

func (sapi *StatusAPI) Register(r *route.Router, tracer opentracing.Tracer, logger log.Logger, ins extpromhttp.InstrumentationMiddleware, logMiddleware *logging.HTTPServerMiddleware)

type TSDBStatus

type TSDBStatus struct {
	Tenant        string `json:"tenant"`
	v1.TSDBStatus `json:","`
}

TSDBStatus has information of cardinality statistics from postings. TODO(fpetkovski): replace with upstream struct after dependency update.

type TenantStats added in v0.28.0

type TenantStats struct {
	Tenant string
	Stats  *tsdb.Stats
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL