{"id":55643,"library":"simpleclient-httpserver","title":"Prometheus Simpleclient HTTPServer","description":"Exposes Prometheus metrics via an HTTP server for scraping by Prometheus or other monitoring systems.","status":"active","version":"0.16.0","language":"java","source_language":null,"source_url":"https://github.com/prometheus/client_java","tags":["prometheus","metrics","http-server","monitoring"],"install":[{"cmd":"<dependency>\n  <groupId>io.prometheus</groupId>\n  <artifactId>simpleclient_httpserver</artifactId>\n  <version>0.16.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.prometheus:simpleclient_httpserver:0.16.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HTTPServer","correct":"io.prometheus.client.exporter.HTTPServer"}],"quickstart":{"code":"import io.prometheus.client.Counter;\nimport io.prometheus.client.exporter.HTTPServer;\n\npublic class Example {\n    static final Counter requests = Counter.build()\n        .name(\"requests_total\").help(\"Total requests.\").register();\n\n    public static void main(String[] args) throws Exception {\n        HTTPServer server = new HTTPServer(1234);\n        requests.inc();\n        System.out.println(\"Metrics server running on port 1234\");\n        server.stop();\n    }\n}","lang":"java","description":"Starts an HTTP server on port 1234 to expose Prometheus metrics."},"warnings":[],"env_vars":null,"search_vec":"'expos':4 'http':9,22 'http-server':21 'httpserver':3 'metric':6,20 'monitor':17,24 'prometheus':1,5,14,19 'scrape':12 'server':10,23 'simplecli':2 'system':18 'via':7","created_at":"2026-06-15T10:00:15.379741+00:00","updated_at":"2026-06-15T10:00:15.379741+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/prometheus/client_java","github":"https://github.com/prometheus/client_java","docs":"https://appdoc.app/artifact/io.prometheus/simpleclient_httpserver/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}