Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultNetwork = "tcp"
Variables ¶
View Source
var ( DownloadCount = promauto.NewCounter(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, Subsystem: constants.CDNMetricsName, Name: "download_total", Help: "Counter of the number of the downloading.", }) DownloadFailureCount = promauto.NewCounter(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, Subsystem: constants.CDNMetricsName, Name: "download_failure_total", Help: "Counter of the number of failed of the downloading.", }) DownloadTraffic = promauto.NewCounter(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, Subsystem: constants.CDNMetricsName, Name: "download_traffic", Help: "Counter of the number of download traffic.", }) ConcurrentDownloadGauge = promauto.NewGauge(prometheus.GaugeOpts{ Namespace: constants.MetricsNamespace, Subsystem: constants.CDNMetricsName, Name: "concurrent_download_total", Help: "Gauger of the number of concurrent of the downloading.", }) )
Variables declared for metrics.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v2.0.2
type Config struct { Net string `yaml:"net" mapstructure:"net"` Addr string `yaml:"addr" mapstructure:"addr"` }
func DefaultConfig ¶ added in v2.0.2
func DefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.