Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { TotalPushCount *prometheus.Desc IosSuccess *prometheus.Desc IosError *prometheus.Desc AndroidSuccess *prometheus.Desc AndroidError *prometheus.Desc HuaweiSuccess *prometheus.Desc HuaweiError *prometheus.Desc BusyWorkers *prometheus.Desc SuccessTasks *prometheus.Desc FailureTasks *prometheus.Desc SubmittedTasks *prometheus.Desc // contains filtered or unexported fields }
Metrics implements the prometheus.Metrics interface and exposes gorush metrics for prometheus
func NewMetrics ¶
NewMetrics returns a new Metrics with all prometheus.Desc initialized
func (Metrics) Collect ¶
func (c Metrics) Collect(ch chan<- prometheus.Metric)
Collect returns the metrics with values
func (Metrics) Describe ¶
func (c Metrics) Describe(ch chan<- *prometheus.Desc)
Describe returns all possible prometheus.Desc
Click to show internal directories.
Click to hide internal directories.