mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-12-24 14:30:29 +00:00
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