public void stopReporting() {
        if (reporter != null) {
            if (reporter instanceof ScheduledReporter) {
                ((ScheduledReporter) reporter).stop();
            } else if (reporter instanceof JmxReporter) {
                ((JmxReporter) reporter).stop();
            } else {
                throw new UnsupportedOperationException("Only 'ConsoleReporter' and 'JmxReporter' is supported," +
                        " Reporter type '" + reporter.getClass().getName() + "' is not supported");
            }
        }
    }
Each siddhi app will have one metric registry and placed in siddhi app context
modules/siddhi-core/src/main/java/io/siddhi/core/util/statistics/metrics/SiddhiStatisticsManager.java