Monitoring Petals ESB with Prometheus

compared with
Version 8 by Pierre Souquet
on Sep 27, 2018 17:43.

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

Changes (9)

View Page History
h3. Adding generic rules

In this example, the point of our rules is:
* gather _java.lang_ metrics, name the metric with the explicit MBean, label them by type and add the container producing them.
* gather component metrics, name the metric with the explicit MBean, and label in a usable way component, container and type (monitoring or runtime_configuration).


Generic rules samples :
{code}
labels:
type: "$1"
target: "system"
container: "petals_sample_0"

Metrics parsed by generic rules :
{code}
ProcessCpuLoad{container="petals_sample_0",target="system",type="OperatingSystem",} ProcessCpuLoad{container="petals_sample_0",type="OperatingSystem",} 2.5760609293017057E-4
SystemCpuLoad{container="petals_sample_0",target="system",type="OperatingSystem",} SystemCpuLoad{container="petals_sample_0",type="OperatingSystem",} 0.10177234194298118

MessageExchangeProcessorThreadPoolQueuedRequestsMax{component="petals-bc-soap",container="petals_sample_0",type="monitoring",} 0.0
h3. Adding specific rules

And you can go further by adding rules for specific MBeans. Here we will
* group *SystemCpuLoad* and *ProcessCpuLoad* as a single metric.
* group *SystemCpuLoad* and *ProcessCpuLoad* as a single metric.
* rename *MessageExchangeProcessorThreadPoolQueuedRequestsMax* into rename *MessageExchangeProcessorThreadPoolQueuedRequestsMax* into a shorter metric, while keeping the full name as label and helper.

{code}
- pattern: 'java.lang<type=OperatingSystem><>SystemCpuLoad: (.*)'