Add a series ops metric "purge_on_request"

It counts series deletions triggered via the API.
pull/1305/head
beorn7 9 years ago
parent 49fe948b9a
commit cb117d8346

@ -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…
Cancel
Save