forked from mirrors/statsd_exporter
commit
802aa8a9e7
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,8 @@ func (r *registry) get(metricName string, hash labelHash, metricType metricType)
|
|||
|
||||
rm, ok := metric.metrics[hash.values]
|
||||
if ok {
|
||||
now := clock.Now()
|
||||
rm.lastRegisteredAt = now
|
||||
return metric.vectors[hash.names].holder, rm.metric
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue