Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(prefix string) *worker.Pool
New creates a worker.Pool backed by prometheus stats. It will create and register: - a {{prefix}}_jobs_count gauge keeping track of the number of jobs currently running - a {{prefix}}_jobs_sum counter keeping track of the total number of jobs ran - a {{prefix}}_trace_nanoseconds summary keeping track of the duration time of traces You have to start the prometheus server yourself, though
Types ¶
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
Trace keeps track of the duration of actions
Click to show internal directories.
Click to hide internal directories.