@Override public void execute(Output output, String... params) throws Exception { output.apply("%-8s %-30s %15s", "STATE", "NAME", "VALUE"); output.separator(); for (Metric metric : metrics.getMetrics()) { output.apply("%-8s %-30s %15s", metric.getState(), metric.getLabel(), metric.getValueAsString()); } output.separator(); }