Skip to content

Commit

Permalink
Added rules for capturing Apache Camel metrics exposed by jmx MBean
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidemasi committed Aug 20, 2024
1 parent b450b16 commit 11337c4
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 0 deletions.
1 change: 1 addition & 0 deletions instrumentation/jmx-metrics/javaagent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $ java -javaagent:path/to/opentelemetry-javaagent.jar \
No targets are enabled by default. The supported target environments are listed below.

- [activemq](activemq.md)
- [camel](camel.md)
- [jetty](jetty.md)
- [kafka-broker](kafka-broker.md)
- [tomcat](tomcat.md)
Expand Down
51 changes: 51 additions & 0 deletions instrumentation/jmx-metrics/javaagent/camel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Camel Metrics

Here is the list of metrics based on MBeans exposed by Camel.

| Metric Name | Type | Attributes | Description |
|-------------------------------------------|---------------|----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| camel.context.exchange.completed.count | Counter | context, camelVersion | Indicates the total number of exchanges processed successfully since context start-up or the last reset operation. |
| camel.context.exchanges.failed.count | Counter | context, camelVersion | Indicates the total number of exchanges that failed to process since context start-up or the last reset operation. |
| camel.context.exchanges.inflight.count | UpDownCounter | context, camelVersion | Indicates the number of exchanges currently transiting the context. |
| camel.context.exchanges.count | Counter | context, camelVersion | Indicates the total number of exchanges, passed or failed, processed since context start-up or the last reset operation. |
| camel.context.failures.handled.count | Counter | context, camelVersion | Indicates the number of exchanges failed and handled by an ExceptionHandler in the context. |
| camel.context.external.redelivery.count | Counter | context, camelVersion | The total number of all external redeliveries since context start-up or the last reset operation. |
| camel.context.processing.max_time | Gauge | context, camelVersion | Indicates the longest time, in milliseconds, to process an exchange since context start-up or the last reset operation. |
| camel.context.processing.mean_time | Gauge | context, camelVersion | Indicates the mean processing time, in milliseconds, for all exchanges processed since context start-up or the last reset operation. |
| camel.context.processing.min_time | Gauge | context, camelVersion | Indicates the shortest time, in milliseconds, to process an exchange since context start-up or the last reset operation. |
| camel.context.processing.last_time | Gauge | context, camelVersion | Indicates the time, in milliseconds, it took to process the last exchange. |
| camel.context.processing.delta_time | Gauge | context, camelVersion | Indicates the difference, in milliseconds, of the Processing Time of the last two exchanges transited the context. |
| camel.context.processing.time | Counter | context, camelVersion | Indicates the total processing time, in milliseconds, to process all exchanges since context start-up or the last reset operation. |
| camel.context.redeliveries.count | Counter | context, camelVersion | Number of redeliveries happened since context start-up or the last reset operation. |
| camel.route.exchange.completed.count | Counter | context, route | Indicates the total number of exchanges the route has processed successfully since route start-up or the last reset operation. |
| camel.route.exchanges.failed.count | Counter | context, route | Indicates the total number of exchanges that the route has failed to process since route start-up or the last reset operation. |
| camel.route.exchanges.inflight.count | UpDownCounter | context, route | Indicates the number of exchanges currently transiting the route. |
| camel.route.exchanges.count | Counter | context, route | Indicates the total number of exchanges, passed or failed, that the route has processed since route start-up or the last reset operation. |
| camel.route.failures.handled.count | Counter | context, route | Indicates the number of exchanges failed and handled by an ExceptionHandler in the route. |
| camel.route.external.redelivery.count | Counter | context, route | The total number of all external redeliveries since the route start-up or the last reset operation. |
| camel.route.processing.max_time | Gauge | context, route | Indicates the longest time, in milliseconds, to process an exchange since the route start-up or the last reset operation. |
| camel.route.processing.mean_time | Gauge | context, route | Indicates the mean processing time, in milliseconds, for all exchanges processed since the route start-up or the last reset operation. |
| camel.route.processing.min_time | Gauge | context, route | Indicates the shortest time, in milliseconds, to process an exchange since the route start-up or the last reset operation. |
| camel.route.processing.last_time | Gauge | context, route | Indicates the time, in milliseconds, it took the route to process the last exchange. |
| camel.route.processing.delta_time | Gauge | context, route | Indicates the difference, in milliseconds, of the Processing Time of the last two exchanges transited the route. |
| camel.route.processing.time | Counter | context, route | Indicates the total processing time, in milliseconds, of all exchanges the selected processed since route start-up or the last reset operation. |
| camel.route.redeliveries.count | Counter | context, route | Number of redeliveries happened since route start-up or the last reset operation. |
| camel.processor.exchange.completed.count | Counter | context, route, processor, destination | Indicates the total number of exchanges the selected processor has processed successfully since processor start-up or the last reset operation. |
| camel.processor.exchanges.failed.count | Counter | context, route, processor, destination | Indicates the total number of exchanges that the selected processor has failed to process since processor start-up or the last reset operation. |
| camel.processor.exchanges.inflight.count | UpDownCounter | context, route, processor, destination | Indicates the number of exchanges currently transiting the processor. |
| camel.processor.exchanges.count | Counter | context, route, processor, destination | Indicates the total number of exchanges, passed or failed, that the selected processor has processed since processor start-up or the last reset operation. |
| camel.processor.failures.handled.count | Counter | context, route, processor, destination | Indicates the number of exchanges failed and handled by an ExceptionHandler in the context. |
| camel.processor.external.redelivery.count | Counter | context, route, processor, destination | The total number of all external redeliveries since processor start-up or the last reset operation. |
| camel.processor.processing.max_time | Gauge | context, route, processor, destination | Indicates the longest time, in milliseconds, to process an exchange since processor start-up or the last reset operation. |
| camel.processor.processing.mean_time | Gauge | context, route, processor, destination | Indicates the mean processing time, in milliseconds, for all exchanges processed since processor start-up or the last reset operation. |
| camel.processor.processing.min_time | Gauge | context, route, processor, destination | Indicates the shortest time, in milliseconds, to process an exchange since processor start-up or the last reset operation. |
| camel.processor.processing.last_time | Gauge | context, route, processor, destination | Indicates the time, in milliseconds, it took the selected processor to process the last exchange. |
| camel.processor.processing.delta_time | Gauge | context, route, processor, destination | Indicates the difference, in milliseconds, of the Processing Time of the last two exchanges transited the selected processor. |
| camel.processor.processing.time | Counter | context, route, processor, destination | Indicates the total processing time, in milliseconds, to process all exchanges since start-up or the last reset operation. |
| camel.processor.redeliveries.count | Counter | context, route, processor, destination | Number of redeliveries happened since selected processor start-up or the last reset operation. |
| camel.threadpool.active.count | UpDownCounter | context, route | The approximate number of threads that are actively executing tasks. |
| camel.threadpool.completed.task.count | Counter | context, route | The approximate total number of tasks that have completed execution. Because the states of tasks and threads may change dynamically during computation, the returned value is only an approximation, but one that does not ever decrease across successive calls. |
| camel.threadpool.pool.size | UpDownCounter | context, route | The current number of threads in the pool. |
| camel.threadpool.largest.pool.size | Counter | context, route | The largest number of threads that have ever simultaneously been in the pool. |
| camel.threadpool.task.count | Counter | context, route | The approximate total number of tasks that have ever been scheduled for execution. |
| camel.threadpool.task.queue.size | UpDownCounter | context, route | The number of Tasks in the Task Queue. |
Loading

0 comments on commit 11337c4

Please sign in to comment.