package
0.0.0-20190222035006-49e54609ed1c
Repository: https://github.com/jacksontj/dataman.git
Documentation: pkg.go.dev

# README

metrics

Things we want

  • labels: registry and metric level
  • FAST (avoid locking where possible)
  • interfaces -* make it easy for people to implement their own metric type
  • namespaced metrics (something like a registry)
  • pluggable (use with graphite, prom, etc.)
  • register AND unregister metrics

Types of metrics

  • counter
  • gauge
  • run func X to get the value: useful for things like "time since start"

# Packages

No description provided by the author

# Functions

CollectOne will get a single MetricPoint from a Collectable c.
No description provided by the author
No description provided by the author
No description provided by the author
Merge all data from `Metric` to every MetricPoint returned from `Collectable`.
No description provided by the author
No description provided by the author
type specific array collectable.
type specific array collectable.
type specific array collectable.
type specific array collectable.
No description provided by the author
No description provided by the author
type specific array collectable.
TODO: better name, we don't want to call this a registry since this doesn't implement the Registry interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TimeSince will report the delta from time.Now() and the previous time observed.
No description provided by the author
No description provided by the author

# Structs

Store an array of metrics.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A metric is defined as (1) name and (2) labelset.
Description of metrics.
TODO: make these mergeable.
Represent a snapshot of a metric at a specific point in time.
No description provided by the author
No description provided by the author
TODO: move.
No description provided by the author
Metric type that will both (1) time and (2) count observations.
Metric type that will both (1) time and (2) count observations.

# Interfaces

Collectable is an interface that defines how to collect metrics.
A few interfaces for user interraction with metrics.
No description provided by the author
No description provided by the author
Registry is a collection collectables with given names.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
Return bool (to send) and error.
No description provided by the author
Value encapsulates a float64 value.