Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWebPrefix ¶ added in v0.3.0
GetWebPrefix sanitizes an external URL path prefix value. A value provided by web.external-prefix flag is preferred over the one supplied through an HTTP header.
func SanitizePrefix ¶ added in v0.3.0
SanitizePrefix makes sure that path prefix value is valid. A prefix is returned without a trailing slash. Hence empty string is returned for the root path.
Types ¶
type Bucket ¶ added in v0.7.0
Bucket is a web UI representing state of buckets as a timeline.
func NewBucketUI ¶ added in v0.7.0
func (*Bucket) Register ¶ added in v0.7.0
func (b *Bucket) Register(r *route.Router, ins extpromhttp.InstrumentationMiddleware)
Register registers http routes for bucket UI.
type Query ¶
type Query struct { *BaseUI // contains filtered or unexported fields }
func NewQueryUI ¶
func (*Query) Register ¶
func (q *Query) Register(r *route.Router, ins extpromhttp.InstrumentationMiddleware)
Register registers new GET routes for subpages and redirects from / to /graph.
type Rule ¶
type Rule struct { *BaseUI // contains filtered or unexported fields }
func NewRuleUI ¶
func NewRuleUI(logger log.Logger, reg prometheus.Registerer, ruleManager *thanosrules.Manager, queryURL, externalPrefix, prefixHeader string) *Rule
func (*Rule) Register ¶
func (ru *Rule) Register(r *route.Router, ins extpromhttp.InstrumentationMiddleware)
Click to show internal directories.
Click to hide internal directories.