// flush write to Destination writer from collector
flush write to Destination writer from collector
// flush write to Destination writer from collector
func flush(c collect.Collector, w io.Writer, keys ...string) error {
	buf, err := getMergedMetrics(c, keys...)
	if err != nil {
		return err
	}
	_, err = io.Copy(w, buf)
	return err
}
func flush ( c collect . Collector , w io . Writer , keys ... string ) error { buf , err := getMergedMetrics ( c , keys ... ) if err != nil { return err } _ , err = io . Copy ( w , buf ) return err }
flush write to Destination writer from collector
flush write to Destination writer from collector