Questions tagged [jmx-exporter]

89 questions
6
votes
0 answers

Spark on Yarn - Prometheus discovery

I'm trying to integrate spark with prometheus. We have both spark 2 and spark 3. For spark 2 I know I can run jmx_exporter. Spark 3 has a new built in PrometheusServlet which is great. We are running spark on prem using YARN, not k8s. My question is…
6
votes
3 answers

Prometheus jmx exporter pattern match for attributes and items

I am trying to pattern match and name prometheus metrics with the jmx_exporter java agent (https://github.com/prometheus/jmx_exporter). There is not much documentation on how to pattern match on MBean attributes and items within these attributes…
Berni
  • 357
  • 3
  • 10
4
votes
0 answers

Exporting spark custom metrics via prometheus jmx exporter

I'm trying to export spark (2.4.0) custom metrics in prometheus format. I found this guide https://argus-sec.com/monitoring-spark-prometheus/ Running on my local pc (windows) I am able to see my metrics in visualVM and in spark's json…
Adi Lerman
  • 61
  • 4
4
votes
0 answers

Configuring jmx_exporter with tomcat

I am trying to expose some of my spring application metrics (Spring). The metrics are mainly database connection metrics. To do so, I started by configuring a hikari connection pool, then I used jmx. To export the metrics to prometheus then…
Ennar.ch
  • 659
  • 1
  • 8
  • 26
3
votes
0 answers

Linux java thread count Vs ThreadMxBean.getThreadCount()

I have a simple java program running to display mxbean threads in Centos. When I do cat /proc//status|grep Threads I get 17 threads but the program outputs very less threads. Could you help me understand why mxbean returns lesser count? Note:…
J Jena
  • 51
  • 3
3
votes
2 answers

jmx exporter inside Confluent Kafka broker container

I'm using the following Kafka container (as a part of docker-compose.yml) broker: image: confluentinc/cp-kafka:6.0.1 hostname: broker container_name: broker depends_on: - zookeeper ports: - "29092:29092" -…
Rodion Altshuler
  • 1,713
  • 1
  • 15
  • 31
3
votes
1 answer

Exporting spark executor jmx metrics for multiple executors running in same machine

I am trying to scrape metrics for spark driver and executor using javaagent with below options. I have Prometheus in kubernetes cluster and I am running this spark application outside the kubernetes…
3
votes
0 answers

Cannot run JMX Exporter in Wildfly 17 running on Java 11

Currently we're running Wildfly (version 17.0.1.Final) in a self-created Docker image based on Java 8. For monitoring our application via Prometheus we installed jmx_exporter and configured it as shown below. Now we'd like to switch to the official…
Robert Strauch
  • 12,055
  • 24
  • 120
  • 192
3
votes
2 answers

kafka and JMX-exporter

I am unable to use JMX exporter to expose kafka metrics. Can you look at my steps and correct me where needed.? I am following steps here to enable kafka with JMX exporter. Following are step by step instruction I followed #get kafka wget…
ankit patel
  • 1,399
  • 5
  • 17
  • 29
3
votes
0 answers

Setup JMX exporting in Wildfly 15 domain configuration with JDK11

I'm trying to setup JMX exporting to plug in Prometheus metrics. Wildfly 15 with Java 11 is used. In domain config I have such a block:
dfche
  • 3,403
  • 2
  • 24
  • 32
3
votes
1 answer

How Does Prometheus Scrape a Kafka Topic?

I’m a network guy trying to build my first Kafka --> Prometheus --> Grafana pipeline. My Kafka broker has a topic which is being populated by an external producer. That’s great. But I can’t figure out how to configure my Prometheus server to…
Pete
  • 1,511
  • 2
  • 26
  • 49
2
votes
1 answer

Using JMX Exporter on Kafka Connect Confluent image throw a NoSuchFieldException at agent loading time

I'm currently triying to expose Kafka Connect Workers JMX : Using this docker image : FROM cnfldemos/cp-server-connect-datagen:0.5.3-7.1.0 ADD --chown=1000:1000 exporterConfig.yml /opt/prometheus-exporter/prom-jmx-agent-config.yml ADD…
Sid
  • 331
  • 2
  • 10
2
votes
0 answers

How to convert attributes into labels in Prometheus jmx-exporter?

I have a metric with a lot of attributes and I want to export that into prometheus with the labels. For instance I have a object with objectname containing type=status, connector=something,task=something but it has attributes WorkerId, Trace and…
2
votes
2 answers

exporting custom metrics through prometheus jmx exporter

I can see jvm, process, java etc metrics on a /metrics endpoint when using the jmx_exporter but not the custom metrics I have exposed through JMX. When I remove the agent and add a jolokia agent, I can see those custom metrics without problem on…
Umapathy
  • 772
  • 8
  • 21
2
votes
1 answer

Is there a way to enable Caffeine MBean registration?

I am using Scaffeine in my project (https://github.com/blemale/scaffeine), a Scala wrapper for Caffeine (https://github.com/ben-manes/caffeine). I also have a prometheus JMX collector embedded in my metrics API…
Berni
  • 357
  • 3
  • 10
1
2 3 4 5 6