Skip to content

[jmx-scraper] Add support for Kafka logging metrics in the integration test #1726

@robsunday

Description

@robsunday

Related to PR #1670
Logging related metrics were not generated by default in currently implemented integration tests.

It is necessary to find out the way how to force Kafka to generate these metrics and check them in the integration test.
Metrics should be verified most probably in KafkaIntegrationTest using the following code:

        .add(
            "kafka.logs.flush.count",
            metric ->
                metric
                    .hasDescription("Log flush count")
                    .hasUnit("{flush}")
                    .isCounter()
                    .hasDataPointsWithoutAttributes())
        .add(
            "kafka.logs.flush.time.median",
            metric ->
                metric
                    .hasDescription("Log flush time - 50th percentile")
                    .hasUnit("ms")
                    .isGauge()
                    .hasDataPointsWithoutAttributes())
        .add(
            "kafka.logs.flush.time.99p",
            metric ->
                metric
                    .hasDescription("Log flush time - 99th percentile")
                    .hasUnit("ms")
                    .isGauge()
                    .hasDataPointsWithoutAttributes())

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions