The different database modules (jdbc and elasticsearch) provide a series of metrics and the automatic creation of segments regarding the requests made to those databases using bytecode instrumentation.
The kamon-jdbc and kamon-elasticsearch modules requires you to start your application using the AspectJ Weaver Agent. Kamon will warn you at startup if you failed to do so.
The following metrics will be recorded:
- reads: a histogram that tracks the reads requests latency.
- writes: a histogram that tracks the writes requests latency.
- slows: a simple counter with the number of measured slow requests.
- errors: a simple counter with the number of failures.