mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 15:44:05 -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"
|
unarchive = "unarchive"
|
||||||
memoryPurge = "purge_from_memory"
|
memoryPurge = "purge_from_memory"
|
||||||
archivePurge = "purge_from_archive"
|
archivePurge = "purge_from_archive"
|
||||||
|
requestedPurge = "purge_on_request"
|
||||||
memoryMaintenance = "maintenance_in_memory"
|
memoryMaintenance = "maintenance_in_memory"
|
||||||
archiveMaintenance = "maintenance_in_archive"
|
archiveMaintenance = "maintenance_in_archive"
|
||||||
|
|
||||||
|
|
|
@ -527,6 +527,7 @@ func (s *memorySeriesStorage) DropMetricsForFingerprints(fps ...model.Fingerprin
|
||||||
}
|
}
|
||||||
|
|
||||||
s.fpLocker.Unlock(fp)
|
s.fpLocker.Unlock(fp)
|
||||||
|
s.seriesOps.WithLabelValues(requestedPurge).Inc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue