Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Port = os.Getenv("PROMETHEUS_PORT") Path = envOrDefault("PROMETHEUS_PATH", "/metrics") Namespace = envOrDefault("PROMETHEUS_NAMESPACE", "skydns") Subsystem = envOrDefault("PROMETHEUS_SUBSYSTEM", "skydns") )
View Source
var ( Auth System = "auth" Cache System = "cache" Rec System = "recursive" Reverse System = "reverse" Stub System = "stub" Nxdomain Cause = "nxdomain" Nodata Cause = "nodata" Truncated Cause = "truncated" Refused Cause = "refused" Overflow Cause = "overflow" Fail Cause = "servfail" Response CacheType = "response" Signature CacheType = "signature" )
Functions ¶
func Metrics ¶
func Metrics() error
Metrics registers the DNS metrics to Prometheus, and starts the internal metrics server if the environment variable PROMETHEUS_PORT is set.
func ReportCacheMiss ¶
func ReportCacheMiss(ca CacheType)
func ReportErrorCount ¶
func ReportRequestCount ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.