Registry / observability / simpleclient-httpserver

simpleclient-httpserver

JSON →
library0.16.0javamavenunverified

Exposes Prometheus metrics via an HTTP server for scraping by Prometheus or other monitoring systems.

<dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_httpserver</artifactId> <version>0.16.0</version> </dependency>
INSTALL
IMPORT
SIG · SIMPLECLIENT-HTTPS
S
simpleclient-httpserver
observabilityjavav0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HTTPServer
io.prometheus.client.exporter.HTTPServer

Starts an HTTP server on port 1234 to expose Prometheus metrics.

import io.prometheus.client.Counter; import io.prometheus.client.exporter.HTTPServer; public class Example { static final Counter requests = Counter.build() .name("requests_total").help("Total requests.").register(); public static void main(String[] args) throws Exception { HTTPServer server = new HTTPServer(1234); requests.inc(); System.out.println("Metrics server running on port 1234"); server.stop(); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
simpleclient-httpserver — mvn dependency:get simpleclient-httpserver · libregistry