@Metric(name = "throughput", description = "Requests processed per second") public int getThroughput() { return 100; } EasyMetrics.configure("config.properties"); MetricRegistry metricRegistry = EasyMetrics.getMetricRegistry(); Counter throughputCounter = metricRegistry.counter("throughput"); throughputCounter.inc(); System.out.println("Current throughput: " + throughputCounter.getCount());


上一篇:
下一篇:
切换中文