Documentation ¶
Index ¶
Constants ¶
View Source
const ( Static = "static" Dynamic = "dynamic" )
Topology types.
View Source
const ( Success = prom.Success OkIgnored = "ok_ignored" ErrValidate = "err_validate" ErrCommit = "err_commit" )
Result labels.
View Source
const Namespace = "itopo"
Namespace is the metrics namespace for the infra topology module.
Variables ¶
View Source
var ( // Current is the single-instance struct to get prometheus gauges. Current = newCurrent() // Updates is the single-instance struct to get prometheus counters and gauges. Updates = newUpdates() )
Functions ¶
Types ¶
type CurrentLabels ¶
type CurrentLabels struct {
Type string
}
CurrentLabels defines the current topology label set.
func (CurrentLabels) Labels ¶
func (l CurrentLabels) Labels() []string
Labels returns the name of the labels in correct order.
func (CurrentLabels) Values ¶
func (l CurrentLabels) Values() []string
Values returns the values of the label in correct order.
type UpdateLabels ¶
type UpdateLabels struct {
Type, Result string
}
UpdateLabels defines the update label set.
func (UpdateLabels) Labels ¶
func (l UpdateLabels) Labels() []string
Labels returns the name of the labels in correct order.
func (UpdateLabels) Values ¶
func (l UpdateLabels) Values() []string
Values returns the values of the label in correct order.
func (UpdateLabels) WithResult ¶
func (l UpdateLabels) WithResult(result string) UpdateLabels
WithResult returns the label set with the modified result.
Click to show internal directories.
Click to hide internal directories.