Registry / observability / simpleclient-pushgateway

simpleclient-pushgateway

JSON →
library0.16.0javamavenunverified

A Java library for pushing metrics to the Prometheus Pushgateway, part of the simpleclient framework.

<dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_pushgateway</artifactId> <version>0.16.0</version> </dependency>
INSTALL
IMPORT
SIG · SIMPLECLIENT-PUSHG
S
simpleclient-pushgateway
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.

PushGateway
io.prometheus.client.exporter.PushGateway

Pushes metrics to a Prometheus Pushgateway.

import io.prometheus.client.exporter.PushGateway; public class Example { public static void main(String[] args) throws Exception { PushGateway pg = new PushGateway("localhost:9091"); pg.pushAdd("my_job", "instance", null); System.out.println("Metrics pushed"); } }
Debug
Known issues
gotchaPushgateway is not recommended for production; prefer pull-based scraping.
fix
Use Prometheus server to scrape metrics directly if possible.
affects: all
Upgrade
Version history
0.16.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
simpleclient-pushgateway — mvn dependency:get simpleclient-pushgateway · libregistry