const ( Gauge = "gauge" Counter = "counter" CumulativeCounter = "cumcounter" )
The different types of metrics that are supported
AddToAll adds a map of dimensions to a list of metrics
CollectorEmission counts collector emissions
InternalMetrics holds the key:value pairs for counters/gauges
NewInternalMetrics initializes the internal components of InternalMetrics
Metric type holds all the information for a single metric data point. Metrics are generated in collectors and passed to handlers.
New returns a new metric with name. Default metric type is "gauge" and timestamp is set to now. Value is initialized to 0.0.
Sentinel returns a sentinel metric, which will force a flush in handler
WithValue returns metric with value of type Gauge
AddDimension adds a new dimension to the Metric.
AddDimensions adds multiple new dimensions to the Metric.
GetDimensionValue returns the value of a dimension if it's set.
GetDimensions returns the dimensions of a metric merged with defaults. Defaults win.
RemoveDimension removes a dimension from the Metric.
Sentinel is a metric value which forces handler to flush all buffered metrics
ZeroValue is metric zero value