Documentation ¶
Index ¶
Constants ¶
View Source
const ( Static = "static" Dynamic = "dynamic" )
Topology types.
View Source
const ( Success = prom.Success OkIgnored = "ok_ignored" ErrRequest = "err_request" ErrUpdate = "err_update" ErrWriteFile = "err_write_file" )
Result labels.
View Source
const Namespace = "idiscovery"
Namespace is the metrics namespace for the infra discovery module.
Variables ¶
View Source
var Fetcher = newFetcher()
Fetcher is the single-instance struct to get prometheus counters.
Functions ¶
This section is empty.
Types ¶
type FetcherLabels ¶
FetcherLabels defines the requests label set.
func (FetcherLabels) Labels ¶
func (l FetcherLabels) Labels() []string
Labels returns the name of the labels in correct order.
func (FetcherLabels) Values ¶
func (l FetcherLabels) Values() []string
Values returns the values of the label in correct order.
func (FetcherLabels) WithResult ¶
func (l FetcherLabels) WithResult(result string) FetcherLabels
WithResult returns the label set with the modified result.
Click to show internal directories.
Click to hide internal directories.