{"id":64039,"library":"simpleclient-pushgateway","title":"Prometheus Simpleclient Pushgateway","description":"A Java library for pushing metrics to the Prometheus Pushgateway, part of the simpleclient framework.","status":"active","version":"0.16.0","language":"java","source_language":null,"source_url":"https://github.com/prometheus/client_java","tags":["prometheus","metrics","monitoring","pushgateway"],"install":[{"cmd":"<dependency>\n  <groupId>io.prometheus</groupId>\n  <artifactId>simpleclient_pushgateway</artifactId>\n  <version>0.16.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.prometheus:simpleclient_pushgateway:0.16.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"PushGateway","correct":"io.prometheus.client.exporter.PushGateway"}],"quickstart":{"code":"import io.prometheus.client.exporter.PushGateway;\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        PushGateway pg = new PushGateway(\"localhost:9091\");\n        pg.pushAdd(\"my_job\", \"instance\", null);\n        System.out.println(\"Metrics pushed\");\n    }\n}","lang":"java","description":"Pushes metrics to a Prometheus Pushgateway."},"warnings":[{"fix":"Use Prometheus server to scrape metrics directly if possible.","message":"Pushgateway is not recommended for production; prefer pull-based scraping.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'framework':18 'java':5 'librari':6 'metric':9,20 'monitor':21 'part':14 'prometheus':1,12,19 'push':8 'pushgateway':3,13,22 'simplecli':2,17","created_at":"2026-06-17T16:51:05.706934+00:00","updated_at":"2026-06-17T16:51:05.706934+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_pushgateway/","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-17","next_check":"2026-12-14","install_tag":null}}