Registry / observability / simpleclient

simpleclient

JSON →
library0.16.0javamavenunverified

Core instrumentation library for the Prometheus simpleclient.

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

Counter
io.prometheus.client.Counter

Creates and increments a Prometheus counter metric.

import io.prometheus.client.Counter; public class Main { static final Counter requests = Counter.build().name("requests_total").help("Total requests.").register(); public static void main(String[] args) { requests.inc(); System.out.println("Request counted"); } }
Debug
Known issues
breakingSimpleclient 0.x uses different API than 1.x; ensure compatibility with your Prometheus setup.
fix
Upgrade to simpleclient 1.x or use the 0.x API consistently.
affects: <1.0.0
Upgrade
Version history
0.16.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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