Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robsunday opened this issue Feb 10, 2025 · 0 comments
Assignees

Comments

@robsunday
Copy link
Contributor

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())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant