Merge pull request #1305 from prometheus/beorn7/storage2

Add a series ops metric "purge_on_request"
This commit is contained in:
Fabian Reinartz 2016-01-11 17:25:39 +01:00
commit 8c81289575
2 changed files with 2 additions and 0 deletions

View file

@ -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"

View file

@ -527,6 +527,7 @@ func (s *memorySeriesStorage) DropMetricsForFingerprints(fps ...model.Fingerprin
}
s.fpLocker.Unlock(fp)
s.seriesOps.WithLabelValues(requestedPurge).Inc()
}
}