jmx_exporter
pubsub
Our great sponsors
jmx_exporter | pubsub | |
---|---|---|
8 | 1 | |
2,896 | 246 | |
1.5% | 0.4% | |
8.0 | 7.5 | |
7 days ago | 7 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jmx_exporter
-
Prometheus JMX Exporter for Java17
not quite sure if this is where I should be asking for help but i'm kind of befuddled about this whole situation. I'm trying to set up https://github.com/prometheus/jmx_exporter for our containerized Java application on our cluster. Specifically the JavaAgent as we are interested in getting the CPU and memory metrics especially. However, getting it initialized I am faced with this:
-
Initial setup
Prometheus doesn't deal with logs at all - only metrics. Even just for metrics, you have several different choices depending on how your Java application is running. You may be able to use the JMX Exporter to expose the metrics that you would then scrape with Prometheus. For the logs, you'll need something like Fluent Bit as an agent to grab ('tail' in Fluent Bit input terms) the logs and send them to Elasticsearch or Grafana Loki.
- Pod log monitoring
- Monitor Java application with prometheus
-
What kind of monitoring tools are people using for their Kafka Deployment?
- https://github.com/prometheus/jmx_exporter - https://github.com/lightbend/kafka-lag-exporter (Export Kafka Topics Lag Metrics) - https://github.com/danielqsj/kafka_exporter (Export Kafka Metrics) - https://github.com/obsidiandynamics/kafdrop (Topic Administration tool - create/edit/delete topics & view messages)
-
Kafka monitoring
Usually I use a javaagent that transforms the JMX metrics into prometheus style metrics, for example: https://github.com/prometheus/jmx_exporter/blob/116a1c4b3fafcfbb9e566b34e130ccc805f331fc/example_configs/kafka-0-8-2.yml
-
Do you use Tomcat ? How to you get optimal performance of it?
Another good one is to add the jmx_exporter agent plugin. This allows easy collection of real-time performance metrics.
-
Kafka Connect: The Magic Behind Mux Data Realtime Exports
In our case, we add sink connectors for AWS Kinesis and Google Cloud PubSub. We also add a Prometheus exporter JAR that scrapes the Kafka Connect JMX metrics and exposes them as Prometheus metrics.
pubsub
-
Kafka Connect: The Magic Behind Mux Data Realtime Exports
In this example, we’re reading from the Kafka topic demo-event-stream-export and writing to the GCP PubSub topic mux-demo-event-stream-export in the project external-mux using the GCP PubSub sink implementation. The connector will run 6 Kafka Connector tasks; each task works as a Kafka consumer, so it makes sense for the number of tasks to not exceed the number of partitions on the source topic (e.g. demo-event-stream-export). The connector sink is identified by the connector.class setting, which references the GCP sink implementation.
What are some alternatives?
Telegraf - The plugin-driven server agent for collecting & reporting metrics.
kinesis-kafka-connector - kinesis-kafka-connector is connector based on Kafka Connect to publish messages to Amazon Kinesis streams or Amazon Kinesis Firehose.
kafka-lag-exporter - Monitor Kafka Consumer Group Latency with Kafka Lag Exporter
kafka_exporter - Kafka exporter for Prometheus
container-jfr - Secure JDK Flight Recorder management for containerized JVMs
exporterhub.io - A Curated List of Prometheus Exporters
kafdrop - Kafka Web UI
akhq - Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
health-report - Single-file program that illustrates how the JFR streaming API can be used.
client_java - Prometheus instrumentation library for JVM applications
kafka-manager - CMAK is a tool for managing Apache Kafka clusters
example.java.helloworld - "Hello World" Example for Java