mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
Merge pull request #1305 from prometheus/beorn7/storage2
Add a series ops metric "purge_on_request"
This commit is contained in:
commit
8c81289575
|
@ -57,6 +57,7 @@ const (
|
|||
unarchive = "unarchive"
|
||||
memoryPurge = "purge_from_memory"
|
||||
archivePurge = "purge_from_archive"
|
||||
requestedPurge = "purge_on_request"
|
||||
memoryMaintenance = "maintenance_in_memory"
|
||||
archiveMaintenance = "maintenance_in_archive"
|
||||
|
||||
|
|
|
@ -527,6 +527,7 @@ func (s *memorySeriesStorage) DropMetricsForFingerprints(fps ...model.Fingerprin
|
|||
}
|
||||
|
||||
s.fpLocker.Unlock(fp)
|
||||
s.seriesOps.WithLabelValues(requestedPurge).Inc()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue