jstests/free_mon/libs/free_mon.js
/**
     * Wait for N metrics calls to be received by web server.
     *
     * @throws assert.soon() exception
     */
Wait for N metrics calls to be received by web server.
Wait for N metrics calls to be received by web server .
waitMetrics(count) {
        const qs = this.queryStats.bind(this);
        const port = this.port;
        assert.soon(function() {
            const stats = qs();
            print("w" + port + "| waiting for metrics >= (" + count + ") QS : " + tojson(stats));
            return stats.metrics >= count;
        }, "Failed to web server metrics", 60 * 1000);
    }
waitMetrics ( count ) { const qs = this . queryStats . bind ( this ) ; const port = this . port ; assert . soon ( function ( ) { const stats = qs ( ) ; print ( "w" + port + "| waiting for metrics >= (" + count + ") QS : " + tojson ( stats ) ) ; return stats . metrics >= count ; } , "Failed to web server metrics" , 60 * 1000 ) ; }
Wait for N metrics calls to be received by web server.
Wait for N metrics calls to be received by web server .
// Wait for metrics uploads to occur