{"id":25301741,"url":"https://github.com/ahus1/prometheusvertxminimal","last_synced_at":"2026-04-28T17:05:06.838Z","repository":{"id":45157264,"uuid":"91269944","full_name":"ahus1/prometheusvertxminimal","owner":"ahus1","description":"Minimal example on how to use Prometheus Monitoring for Vert.x applications","archived":false,"fork":false,"pushed_at":"2026-01-16T20:52:31.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-17T09:07:18.815Z","etag":null,"topics":["prometheus","vertx"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahus1.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-14T20:35:51.000Z","updated_at":"2026-01-16T20:52:29.000Z","dependencies_parsed_at":"2022-09-22T18:00:47.402Z","dependency_job_id":null,"html_url":"https://github.com/ahus1/prometheusvertxminimal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahus1/prometheusvertxminimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahus1%2Fprometheusvertxminimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahus1%2Fprometheusvertxminimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahus1%2Fprometheusvertxminimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahus1%2Fprometheusvertxminimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahus1","download_url":"https://codeload.github.com/ahus1/prometheusvertxminimal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahus1%2Fprometheusvertxminimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prometheus","vertx"],"created_at":"2025-02-13T06:48:57.850Z","updated_at":"2026-04-28T17:05:06.815Z","avatar_url":"https://github.com/ahus1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Minimal example on how to setup Vert.x with Prometheus\n\n== What to expect\n\nRun a Vert.x application and read metrics from JVM and Vert.x using a Prometheus endpoint.\n\n== Motivation\n\nThere used to be no minimal example as part of the Prometheus' Java Client available.\n\n== How to Run\n\nTo run with maven\n\n    mvn compile exec:java\n\nOpen http://localhost:8081 to access the metrics.\n\nNew metrics abouts Vert.x will appear as they are used for the the first time.\nExample: the metrics about the event bus will appear once the first event is sent to the event bus.\n\nMore information: https://vertx.io/docs/vertx-micrometer-metrics/java/\n\n== Key bits and pieces\n\n\n1. Start Vert.x with Micrometer Metrics\n+\n.VertxApplication.java\n[source,indent=0]\n----\n        vertx = Vertx.vertx(new VertxOptions().setMetricsOptions(\n                new MicrometerMetricsOptions()\n                        .setPrometheusOptions(new VertxPrometheusOptions().setEnabled(true))\n                        .setEnabled(true)\n        ));\n----\n\n2. Expose additional metrics (i.e. JVM metrics) to Prometheus\n+\n.VerticleWeb.java\n[source,indent=0]\n----\n        CollectorRegistry registry =\n                ((PrometheusMeterRegistry) BackendRegistries.getDefaultNow()).getPrometheusRegistry();\n        (new StandardExports()).register(registry);\n        (new MemoryPoolsExports()).register(registry);\n        /* ... */\n----\n\n3. Expose Prometheus Metrics via HTTP\n+\n.VerticleWeb.java\n[source,indent=0]\n----\n        // map /metrics to prometheus\n        router.route(\"/metrics\").getDelegate().handler(new MetricsHandler(registry));\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahus1%2Fprometheusvertxminimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahus1%2Fprometheusvertxminimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahus1%2Fprometheusvertxminimal/lists"}