statsd exporter currently relies on LastValue
for emitting gauge metrics
#11
Labels
area: exporter
Related to an exporter package
Milestone
The new statsd exporter looks for a
LastValue
aggregator to emit gauge metrics. This is problematic because theNewExportPipeline
factory usessimple.NewWithExactMeasure
as its aggregator selector. This selector chooses the points aggregation forObserver
types.In most cases, I would imagine those using DataDog would expect Observer results to be output as traditional gauge metrics. The recommendation here says
However, this exporter does not consider this. Also IIUC under certain circumstances (e.g. short push interval, and low traffic) there may be situations where true histogram values come in with a single count. In that case it would be impossible to determine what is desired to be exported as a gauge, vs. what is desired to be exported as a histogram.
In light of this, the two solutions I see are to make the ExactMeasure selector choose a
LastValue
aggregator for themetric.ObserverKind
case, or provide the ability to construct our own export pipeline with out own selector. The latter is currently not possible becauseExporter.labelEncoder
is not present.If a new selector is in fact required, I think it makes sense to add to this library since the exporter expects a
LastValue
aggregator to be used.@jmacd I'll defer to you here on any options I probably missed since you're most familiar in this space.
The text was updated successfully, but these errors were encountered: