prometheus/client_java: a metrics library whose README is a signpost to its docs site
Prometheus instrumentation library for JVM applications
At a glance
- What is it?
- prometheus/client_java is the Prometheus instrumentation library for JVM applications. Its README holds links and a branch note, so the real detail sits in the docs site, the examples directory and the module layout. This review reads what the repository shows and flags what it leaves out.
- Who is it for?
- prometheus/client_java suits Java and JVM teams that already run Prometheus and want the project's own instrumentation library, ideally starting from the example closest to their setup. It does not suit anyone who expects a README to teach the API, because this one teaches nothing beyond where to look.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Java, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- prometheus/client_java2,289 ★ · +1
| Repository | 2026-10-14 | 2026-11-25 |
|---|---|---|
| prometheus/client_java | 2.3k | 2.3k |
1 Stars in the last 42 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
A README of links: the docs site is the product manual
The README of prometheus/client_java holds almost no usage content. Under its title, Prometheus Java Metrics Library, it has a build badge, a Documentation heading pointing to prometheus.github.io/client_java, a contributing note, a previous releases note and the license line. There is no install snippet, no dependency coordinates and no code sample.
That shapes how to evaluate the project. Anything you need to know about adding it to a build or defining a metric is on the documentation site, and the repository's docs/ directory holds the source for that material. The README says only that the project is a Prometheus instrumentation library for JVM applications, a line that comes from the repository description.
A reader who lands on GitHub from a search should go to the docs site first and treat the README as a table of contents. The homepage field in the repository points to the same site.
Version 0.16.0 and older live on a separate simpleclient branch
One sentence in the README carries a real constraint. The source code for 0.16.0 and older is on the simpleclient branch. The main branch is a different line, with releases numbered 1.x. The most recent three are v1.10.0 on 2026-10-16, v1.9.0 on 2026-09-16 and v1.8.0 on 2026-06-11.
If your application still runs a 0.x version, you are on code that is no longer developed on the default branch, and bug reports against it point to a different branch. The README says nothing about how to move from 0.16.0 to 1.x, what changed in the API, or whether metrics keep their names across the move.
The examples directory contains one project named example-simpleclient-bridge. The README does not explain it, but the name suggests a path for code that still uses the older simpleclient classes. Read its contents before assuming that.
Ten example projects cover exporters, histograms, exemplars and OpenTelemetry
The strongest evidence of scope is the examples directory. It contains ten example projects, each in its own folder, plus an examples/pom.xml that ties them together as a Maven build. The names are the only description the repository text provides:
example-custom-buckets, example-exemplars-tail-sampling, example-exporter-httpserver, example-exporter-multi-target, example-exporter-opentelemetry, example-exporter-servlet-tomcat, example-native-histogram, example-otel-jvm-runtime-metrics, example-prometheus-properties and example-simpleclient-bridge.
From those names the library covers more than counters. It deals with histogram bucket layout, native histograms and exemplars. It has more than one way to expose metrics: an HTTP server exporter and a servlet exporter on Tomcat. There is a multi-target exporter, an OpenTelemetry exporter, and an example that reports JVM runtime metrics through OpenTelemetry. Another example is about configuration through a properties file.
The names do not say how any of these behave, so run the example closest to your deployment.
The module list is cut off, so the artifact names must come from the docs
The top-level repository listing shows Maven machinery: pom.xml, mvnw, mvnw.cmd and a .mvn directory. It also shows a prometheus-metrics-annotations directory, and further entries beginning with prometheus-metrics are cut off in the listing. That naming pattern points to a multi-module build where each capability is a separate artifact, though the repository text does not list them.
The practical consequence is that you cannot choose dependencies from the README. A project that needs only the core API, or only an exporter, has to read the docs site for the artifact names and for which modules depend on which. Copying dependency coordinates from a blog post written for the 0.x line is the likely way to end up on the old simpleclient artifacts.
The repository also holds benchmarks/ and integration-tests/ directories. Neither is described in the README, and no benchmark result is stated, so any performance claim about this library needs your own measurement.
Community contact runs through CNCF Slack and a fortnightly call
The README names the support channels. The Prometheus Java community is on the CNCF Slack in the #prometheus-java channel, and there is a fortnightly community call listed in the Prometheus public calendar. CONTRIBUTING.md and the community section of the Prometheus homepage cover how to contribute.
Governance files are present at the top level: MAINTAINERS.md, CODEOWNERS, CODE_OF_CONDUCT.md and SECURITY.md. The SECURITY.md file is where a vulnerability report should go, and RELEASING.md records how releases are cut. These are the files that answer questions the README skips about who maintains the library and how it ships.
For an incident, the channel is the fastest documented route to a person, and the issue tracker is the record. The README promises no response time.
Build tooling: Maven wrapper, mise, checkstyle, and agent instruction files
A contributor checking out the repository finds mvnw and mvnw.cmd, so the Maven wrapper pins the build tool for Linux, macOS and Windows alike. mise.toml and mise.lock pin other tools through mise, and a .mise directory holds related configuration. Code style is enforced with checkstyle.xml and checkstyle-suppressions.xml, with biome.jsonc and .yaml-lint.yml covering other file types, and .editorconfig sets editor defaults.
Two files stand out as modern additions: AGENTS.md and CLAUDE.md. Both are instruction files for AI coding assistants working in the repository. The README does not mention them, and their contents are not shown, so what rules they set is unknown from here.
These details matter only to contributors. A user of the library never builds the repository, because the released artifacts come from the project's release process.
Apache-2.0 licensing and the maintenance signal from release dates
The license is Apache License 2.0, stated at the bottom of the README with a link to the LICENSE file, and a NOTICE file sits beside it at the top level. That file is where attribution requirements for the Apache license are collected, so redistributors should read it.
The maintenance signal is clear from dates. The last push to the main branch was on 2026-10-25, and the three most recent releases fall between 2026-06-11 and 2026-10-16. The gaps are two months, then one month. The CHANGELOG.md file records what each release changed, and it is the place to read before upgrading between minor versions of the 1.x line.
What the repository does not tell you is how it compares with other metrics libraries, how much overhead instrumentation adds, or which JVM versions are required. Look for the JVM requirement in the docs site before pinning the dependency.
Editorial conclusion
prometheus/client_java suits Java and JVM teams that already run Prometheus and want the project's own instrumentation library, ideally starting from the example closest to their setup. It does not suit anyone who expects a README to teach the API, because this one teaches nothing beyond where to look. Before adopting it, open the docs site, then run the example that matches your exporter, and check whether you still depend on 0.16.0 or older, which live on a separate branch.
Frequently asked questions
What is prometheus/client_java?
It is the Prometheus instrumentation library for JVM applications, licensed under Apache-2.0. The project documentation is at prometheus.github.io/client_java.
Where is the source for client_java 0.16.0 and older?
The README says the source code for 0.16.0 and older is on the simpleclient branch. The main branch carries the 1.x releases.
Where can I ask questions about the Prometheus Java client?
The README names the #prometheus-java channel on the CNCF Slack. It also lists a fortnightly community call in the Prometheus public calendar.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/prometheus-client-java)Star history chart for your README
[](https://hysenlabs.com/projects/prometheus-client-java)Was this useful?