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
0 answers

Get MBeans when using micrometer-registry-prometheus dependency with actuator

I am evaluating and learning about options for monitoring metrics for Java applications with SpringBoot (2.6.6) and I have done some testing with Prometheus, but there are some differences between using the Prometheus Java agent and using from the…
CarlosS
  • 161
  • 1
  • 13
0
votes
0 answers

Is there a way to monitor some max value of summary metric in prometheus when application is real-time and messages frequency can change

Problem in getting Nan values when monitoring summary metric of java application via prometheus and grafana when handling maxAgeSeconds Hello everyone, I am using prometheus and grafana for monitoring my java application. I am writing a Summary…
0
votes
0 answers

How to aggregate data from prometheus jmx_exporter and simpleclient into a single HTTP endpoint

I have a application which uses jmx_exporter to expose metrics to prometheus, now i want to use simpleclient to expose application specific custom metrics. Both of these are exposing a new http server to expose metrics with identical format which…
0
votes
0 answers

Prometheus container how to discover unknown other swarm services?

I have a swarm cluster with a few nodes and a Prometheus cluster which get metrics from cadvisor, node exporter and other prometheus agents. But i need to get jmx metrics from other swarm services. The problem is: i can't publish port from those…
0
votes
0 answers

Liferay 7 Osgi - search for prometheus simple client jar bundle

It's my turn to post a question about #liferay context. I want to integrate Prometheus Java Simpleclient for metrics exporting into a custom liferay module. This lib https://mvnrepository.com/artifact/io.prometheus/simpleclient. It's so annoying &…
Daniele Baggio
  • 2,157
  • 1
  • 14
  • 21
0
votes
1 answer

Usage of micrometer-registry-prometheus slow down my Spring Boot application

I have Spring Boot application 2.5.7 where I set up a micrometer to scrape metrics runtimeOnly("io.micrometer:micrometer-registry-prometheus") When I make a request locally http://localhost:8081/actuator/prometheus There are no performance problems…
0
votes
0 answers

Prometheus group alerts into single slack notification

New to Prometheus Alerting! I have a prometheus Counter that has multiple Child metrics that keeps incrementing on specific individual conditions. On a given day, for this expression, these counters will look like: Expression: floor(sum by…
0
votes
0 answers

Prometheus target showing down

Please note: my prometheus is running using ubuntu terminal and my springboot application is running on windows. Seems like my ubuntu is not able to connect with the localhost of windows. I have created springboot metrics using "actuator" and my…
0
votes
0 answers

Can Prometheus Queries be stored and the results be sent further to Grafana?

I am working with creating metrics using Pushgateway+Prometheus. Question is that prometheus received metrics along with labels, In Prometheus query language we make use of many operators or inbuilt functions such as increase(), rate(), sort() .…
userdr725
  • 25
  • 1
  • 6
0
votes
1 answer

Where does the micrometer publish metrics as _seconds_bucket, _seconds_count and _seconds_sum?

The Micrometer produces metrics such as metric_name_seconds_bucket{tags,le="+Inf",} 1.0 metric_name_seconds_count{tags,} 1.0 metric_name_seconds_sum{tags,} 0.256 for all metrics. Where does Micrometer produces this metrics in code? I want to extend…
0
votes
0 answers

Trailing comma observed in the label section of Prometheus metric with Java

I have setup the code to send a counter metric to Prometheus from my java code. Here is my counter and the associated labels: static final Counter counter = Counter.build().name("sample_counter") .help("Records…
Arnav Bose
  • 791
  • 4
  • 13
  • 27
0
votes
2 answers

Micrometer metrics in multiple instances of springboot application

I have a custom micrometer metrics in spring boot application configured with Prometheus which scrapes the metrics every 15s. The custom metrics is querying the db every 1 min. As I have 2 instances of this service running, both the instances tries…
0
votes
0 answers

Spring-boot 2 and Promethius conflicts

I just moved up to spring-boot2 and cannot seem to remove the runtime errors related to AbstractEndpoint. Answers I have read seem to indicate that making the actuator version and micrometer-registry-prometheus compatibly will solve the problem. I…
klyde200
  • 1
  • 1
0
votes
0 answers

Exposing Prometheus Java Client Metrics for Springboot Application in the same server

So I've been working on exposing /metrics using java client within a Spring Boot Application. I created the counters and histograms and they are all working fine. This is how I did it: public static void main(String[] args){ …
heff
  • 1
  • 1
0
votes
0 answers

How to config in java code to expose prometheus

I have configured metrics in flink and exposed in prometheus, its working fine, But I just need to verify some metrics in my integration test, so I was trying to expose to prometheus via java code Followed the approach mentioned in below link…