Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrometheusNamespace is the metric namespace for feed binaries. PrometheusNamespace = "feed" // PrometheusIngressSubsystem is the metric subsystem for feed-ingress. PrometheusIngressSubsystem = "ingress" // PrometheusDNSSubsystem is the metric subsystem for feed-dns. PrometheusDNSSubsystem = "dns" )
Variables ¶
This section is empty.
Functions ¶
func ConstLabels ¶
func ConstLabels() prometheus.Labels
ConstLabels should be used when creating a prometheus metric, as a set of default labels. To ensure the correct const labels are used, make sure metrics are not created in init(). SetConstLabels should have been called first.
func SetConstLabels ¶
func SetConstLabels(l prometheus.Labels)
SetConstLabels sets default labels for prometheus metrics, that can be retrieved using ConstLabels().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.