Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct {
Timer prometheus.Gauge
Registry *prometheus.Registry
Pusher *push.Pusher
PushURL string
JobName string
Begin time.Time
}
func NewCollector ¶
func NewCollector(pushURL, metricsName, description string) *Duration
func (*Duration) CompleteGathering ¶
func (t *Duration) CompleteGathering() error
type MetricsGather ¶
type MetricsGather struct {
Enabled bool
PushGateway string
}
func NewGatherer ¶
func NewGatherer() *MetricsGather
Click to show internal directories.
Click to hide internal directories.