Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created November 23, 2018 19:48
Show Gist options
  • Select an option

  • Save Riduidel/d840566861b7ad33bf7c4a8eac8fe2b8 to your computer and use it in GitHub Desktop.

Select an option

Save Riduidel/d840566861b7ad33bf7c4a8eac8fe2b8 to your computer and use it in GitHub Desktop.
public class Launcher extends io.vertx.core.Launcher {
public static void main(String[] args) {
new Launcher().dispatch(args);
}
@Override
public void beforeStartingVertx(VertxOptions options) {
super.beforeStartingVertx(options);
options.setMetricsOptions(new MicrometerMetricsOptions()
.setPrometheusOptions(new VertxPrometheusOptions().setEnabled(true)).setEnabled(true));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment