[prometheus-users] Re: JBoss monitor with JMX-Prometheus

2024-01-04 Thread Doug Hoard
I believe that JBoss uses an XML file to define Java / JVM options. You will have to consult JBoss documentation to understand how to add Java command line arguments. I would start with httpserver_sample_config.yml as a starting point to understand what metrics are available/what you want to

[prometheus-users] Re: can we run prometheus jmx exporter as a stanalone service

2023-11-12 Thread Doug Hoard
Yes… but you will lose JVM and process metrics. Running as a Java agent is recommended. On Sunday, November 12, 2023 at 10:13:42 AM UTC-5 Sameer Modak wrote: > can we run prometheus jmx exporter as a stanalone service like node > exporter > > and how do we monitor the the kafka metrics if we

[prometheus-users] Re: How to use Prometheus' JMXCollector to collect metrics over multiple iterations

2023-07-25 Thread Doug Hoard
Correct. On Tuesday, July 25, 2023 at 8:08:56 AM UTC-4 Moe wrote: > Oh, that makes sense. Also, does this mean the scraping interval logic > resides in Prometheus? > > On Tuesday, July 25, 2023 at 4:49:09 PM UTC+5:30 Doug Hoard wrote: > >> Prometheus can be configured to sc

[prometheus-users] Re: How to use Prometheus' JMXCollector to collect metrics over multiple iterations

2023-07-25 Thread Doug Hoard
ed during > collection. > > I see that the config file > <https://github.com/prometheus/prometheus/blob/main/config/testdata/conf.good.yml> > used > in Prometheus has a scrape interval defined. Does this call the JMX > collector? > > On Tuesday, July 25, 2023 at 5:46

[prometheus-users] Re: How to use Prometheus' JMXCollector to collect metrics over multiple iterations

2023-07-24 Thread Doug Hoard
I'm not aware of any code that performs what you are trying to accomplish. Do you actually need access to the List returned during the collection? Typically, a Java application would use the Prometheus JMX Exporter (as a Java agent) to expose the metrics via HTTP(S). Your application could

[prometheus-users] Re: Prometheus JMX Exporter / Java version support

2023-07-10 Thread Doug Hoard
Prometheus JMX Exporter version 0.19.0, Java 6 support was dropped. On Friday, April 21, 2023 at 2:21:10 PM UTC-4 Doug Hoard wrote: > Currently, the JMX Exporter still maintains Java 6 support. > > There are features on the roadmap, such as exposing metrics via HTTPS > (SSL

[prometheus-users] Re: How to use Jmx exporter JavaAgent as a sidecar container

2023-07-10 Thread Doug Hoard
The Java agent version (jmx_prometheus_javaagent.jar) is meant to run as an agent attached to the application (in your case Tomcat.) If you want to run as a sidecar, I suspect you want the standalone version (jmx_prometheus_httpserver.jar.) The integration tests have good examples of usage.

[prometheus-users] Re: JMX Exporter

2023-07-10 Thread Doug Hoard
Typically this happens if you are trying to run the Java agent version as the application. The integration tests have good examples of usage. Java agent usage:

[prometheus-users] Re: MBeans returned as Longs instead of Attributes

2023-06-14 Thread Doug Hoard
Per Javadoc (https://docs.oracle.com/en/java/javase/17/docs/api/java.management/javax/management/AttributeList.html) "For compatibility reasons, it is possible, though highly discouraged, to add objects to an AttributeList that are not instances of Attribute" ... but the scraping code is

[prometheus-users] Re: Prometheus JMX Exporter Help

2023-05-13 Thread Doug Hoard
What Java version / JVM distribution are you using? The integration test suite tests 65 combinations of Java versions / different JVM distributions of the Java agent version and standalone HTTP server version. No errors.

[prometheus-users] Prometheus JMX Exporter / Java version support

2023-04-21 Thread Doug Hoard
Currently, the JMX Exporter still maintains Java 6 support. There are features on the roadmap, such as exposing metrics via HTTPS (SSL) that would be substantially easier by dropping Java 6. Additionally, the Java 6 version of the exporter requires an unsupported SnakeYAML version that has

[prometheus-users] Re: Assign Port on fly for jmx_exporter for exporting kafka metrics

2023-04-21 Thread Doug Hoard
Tushar, By connector are referring to Kafka Connect? On Tuesday, November 22, 2022 at 10:32:26 AM UTC-5 Tushar Goyal wrote: > Hi, > > We are using JMX_exporter to export metrics to Prometheus. > > Multiple connector could be residing on workers in same host. So it is not > possible to assign

[prometheus-users] Re: JMX and prometheus integration

2023-04-21 Thread Doug Hoard
Vivek, Jetty MBean should be able to be exported via the Prometheus JMX Exporter ( https://github.com/prometheus/jmx_exporter/ ) On Sunday, April 2, 2023 at 4:54:02 AM UTC-4 Vivek Singh wrote: > Hi, I have a jetty server-based java application whose metrics are exposed > using JMX. But

[prometheus-users] Re: Observing CLOSE_WAIT connections when using JMX Exporter

2023-04-21 Thread Doug Hoard
Angelin, Can you clarify where you are seeing the CLOSE_WAIT sockets? Prometheus server? Kafka server? On Tuesday, April 18, 2023 at 9:35:33 AM UTC-4 Dan Gherman wrote: > Did you solve this? I know it's a very old message, but I'm facing similar > issues. > Using jmx-exporter-javaagent

Re: [prometheus-users] Consumer lag using JMX exporter

2022-01-07 Thread Doug Hoard
Another option is kafka-lag-exporter https://github.com/lightbend/kafka-lag-exporter On Friday, January 7, 2022 at 3:27:53 AM UTC-5 somn...@optit.co wrote: > Thank you @Matthias for your response. > > Regards > Somnath Pandey > > On Friday, January 7, 2022 at 2:48:58 AM UTC+5:30