// WipeMetricStore deletes all the metrics in MetricStore.
//
// The returned handler is already instrumented for Prometheus.
WipeMetricStore deletes all the metrics in MetricStore.

The returned handler is already instrumented for Prometheus.
// WipeMetricStore deletes all the metrics in MetricStore . // // The returned handler is already instrumented for Prometheus .
func WipeMetricStore(
	ms storage.MetricStore,
	logger log.Logger) http.Handler {
	return promhttp.InstrumentHandlerCounter(
		httpCnt.MustCurryWith(prometheus.Labels{"handler": "wipe"}),
		http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
			w.WriteHeader(http.StatusAccepted)
			level.Debug(logger).Log("msg", "start wiping metric store")
			for _, group := range ms.GetMetricFamiliesMap() {
				ms.SubmitWriteRequest(storage.WriteRequest{
					Labels:    group.Labels,
					Timestamp: time.Now(),
				})
			}
		}))
}
func WipeMetricStore ( ms storage . MetricStore , logger log . Logger ) http . Handler { return promhttp . InstrumentHandlerCounter ( httpCnt . MustCurryWith ( prometheus . Labels { " " : " " } ) , http . HandlerFunc ( func ( w http . ResponseWriter , _ * http . Request ) { w . WriteHeader ( http . StatusAccepted ) level . Debug ( logger ) . Log ( " " , " " ) for _ , group := range ms . GetMetricFamiliesMap ( ) { ms . SubmitWriteRequest ( storage . WriteRequest { Labels : group . Labels , Timestamp : time . Now ( ) , } ) } } ) ) }
WipeMetricStore deletes all the metrics in MetricStore.
WipeMetricStore deletes all the metrics in MetricStore .
// Delete all metric groups by sending write requests with MetricFamilies equal to nil.