Questions tagged [prometheus-java]

Refers to specific questions about the library for JVM applications

Prometheus instrumentation library for JVM applications

Java Doc: http://prometheus.github.io/client_java/

Source code: https://github.com/prometheus/client_java

81 questions
0
votes
1 answer

How to expose outbound metrics for prometheus for the webclient requests?

Hi I am quite new to prometheus metrics. I need to expose the http_client_requests_seconds_count and http_client_requests_seconds_sum for the requests to the down stream servers. I have enabled the prometheus in my project by management: …
0
votes
1 answer

Best practice for unregistering/redefining/customizing already-registered Prometheus metrics in Java

Say I'm using a library (Java) which defines / registers metrics in Prometheus. I'm wondering how I might be able to unregister/redefine/customize these metrics which have already been defined/registered by said library? Specifically, if I had a…
youngrrrr
  • 3,044
  • 3
  • 25
  • 42
0
votes
1 answer

Prometheus for unreachable endpoint monitoring

I have been trying to setup monitoring for a server which is on client side (unreachable). One way I tried was prometheus remote write. As I am new to prometheus, I expected that Client prometheus will push the metrics to central prometheus further…
0
votes
1 answer

Add endpoint as the receiver in the prometheus alert configuration

I am trying to activate my spring boot application endpoints with the alerts, for the required event that is defined in the alert rules of prometheus is broken, so that I want to add my application endpoints as a receiver to receive alerts from the…
0
votes
0 answers

Prometheus - prometheus.yml invalid target

I've been tryint to set up prometheus on my project but I'm having an issue when setting the targeton on prometheus.yml I've already did everything else, added dependencies and I'm using prometheus through spring actuator My local URL is…
0
votes
1 answer

scrape with PrometheusMeterRegistry

I have the following servlet: @Servlet(\path : String -> path.matches("/metrics")) class MetricsServlet_De extends HttpServlet { private var prometheusMeterRegistry : PrometheusMeterRegistry override function init() { configureMetrics() …
DeKekem
  • 589
  • 10
  • 20
0
votes
2 answers

Prometheus histogram buckets with ranges

I have a basic histogram that measures some dummy duration: Histogram histogram = Histogram.build().name(name).help((String) metricData.get(HELP)).register(registry); Histogram.Timer timer = histogram.startTimer(); logger.info("Sleeps…
Oded
  • 336
  • 1
  • 3
  • 17
0
votes
1 answer

Prometheus metrics Configuration

I'm pretty new to Prometheus and according to my understanding, there are many metrics already available in Prometheus. But I'm not able to see "http_requests_total" which is used in many examples in the list. Do we need to configure anything in…
0
votes
0 answers

Prometheus don't show correct result

I'am trying to send metricks to Prometheus from my Java code. I use MeterRegistry class for it. Metrick and tags what I send look like [tag(user-status=ACTIVE), tag(strategy-type=POOL), tag(verified=true), tag(subscription-status=INACTIVE)]…
0
votes
1 answer

Prometheus Java Client : Export String based Metrics

I`m Currently trying to write an Exporter for Minecraft to display some Metrics in our Grafana Dashboard. While most Metrics are working fine with the Metric Types Counter and Gauge, i couldn't find any documentation on how to export Strings as…
thelooter
  • 25
  • 1
  • 5
0
votes
1 answer

Integrating prometheus jmx_exporter with jboss application

I am very new to the jboss application and trying to integrate prometheus jmx_exporter with jboss-EAP 7.0.0 on windows. I am trying to run in domain configuration mode. Below are the changes that I have did in host.xml
0
votes
1 answer

Need to show metrics in Grafana of Java application also for Spark configurations batch applications

I have one use case where I need to show the matrics of my java application into the Grafana but mine is a batch application not the time series, I have my data stored in relational DB. How it is possible to like do I need to push the data to some…
0
votes
1 answer

Customize Flink - Prometheus metrics

I need to export custom metrics from Flink 1.10 to Prometheus. I have my custom metrics already created and working, but the issue is that when I print out (in terminal for example) to see the metrics, a lot of metrics comes out from Flink and I…
Alter
  • 903
  • 1
  • 11
  • 27
0
votes
2 answers

Get code '200' from prometheus when using PrometheusPushGateway to report flink metrics

when i use flink-metrics-prometheus_2.11-1.10.0.jar to report metrics to prometheus, i got following errors, i want to know the reason for this problem and how can i solve it: 2020-04-20 15:32:17.940 [Flink-MetricRegistry-thread-1] WARN …
0
votes
0 answers

Error msg="append failed" err="expected equal, got \"INVALID\""

When I try to get the graph for a custom metrics I instrumented using Prometheus I got the error "msg="append failed" err="expected equal, got \"INVALID\"". Why this occurs and how to solve this?
N.Chandimali
  • 799
  • 1
  • 8
  • 23