Monitoring Petals ESB with Prometheus

Version 1 by Pierre Souquet
on Sep 27, 2018 12:02.

compared with
Version 2 by Pierre Souquet
on Sep 27, 2018 13:51.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History


_JMX to Prometheus exporter: a collector that can configurably scrape and expose mMBeans of a JMX target._
_This exporter is intended to be run as a Java Agent, exposing a HTTP server and serving metrics of the local JVM. It can be also run as an independent HTTP server and scrape remote JMX targets, but this has various disadvantages, such as being harder to configure and being unable to expose process metrics (e.g., memory and CPU usage). Running the exporter as a Java Agent is thus strongly encouraged._

* Only numeric values are supported by prometheus (though string can me interpreted as regexp to extract numeric values)
* Custom and complex objects may not be exported by the exporter, having ‘\- pattern “.*”’ as only rule will return every metric available (useful for testing)
* Rules order is important: Eventually, a single MbBean is processed by a single rule\! To decide which rule is applied: MbBeans will be parsed by each rule (in order) until a pattern matches, then this rule is applied to the MbBean. In other words, all rules are tested against each MbBean the first one to match is kept for the MbBean. So very specific rules should be put first, and generic/default rules last.

Rule samples :