mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Add a series ops metric "purge_on_request"
It counts series deletions triggered via the API.
This commit is contained in:
parent
49fe948b9a
commit
cb117d8346
|
@ -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