public double compute() {
        return metricValue(consumer.metrics(), "io-wait-time-ns-total")
            + metricValue(consumer.metrics(), "io-time-ns-total")
            + metricValue(consumer.metrics(), "committed-time-ns-total")
            + metricValue(consumer.metrics(), "commit-sync-time-ns-total")
            + metricValue(restoreConsumer.metrics(), "io-wait-time-ns-total")
            + metricValue(restoreConsumer.metrics(), "io-time-ns-total")
            + producerTotalBlockedTime.get();
    }
@Test
    public void shouldComputeTotalBlockedTime() {
        assertThat(
            blockedTime.compute(),
            equalTo(IO_TIME_TOTAL + IO_WAIT_TIME_TOTAL + COMMITTED_TIME_TOTAL
                + COMMIT_SYNC_TIME_TOTAL + RESTORE_IOTIME_TOTAL + RESTORE_IO_WAITTIME_TOTAL
                + PRODUCER_BLOCKED_TIME)
        );
    }