Skip to content

Comments

bdu/testability-of-default-metrics#568

Draft
bric3 wants to merge 9 commits intomasterfrom
bdu/testability-of-default-metrics
Draft

bdu/testability-of-default-metrics#568
bric3 wants to merge 9 commits intomasterfrom
bdu/testability-of-default-metrics

Conversation

@bric3
Copy link
Contributor

@bric3 bric3 commented Jul 8, 2025

Adds test for ZGC Memory pools, for both generational and non-generational.
For this to happen, this introduces a mechanism to replace the default configuration, it has to be in the same package org/datadog/jmxfetch.

Also fixed a file descriptor leak when reading default config, and the use of a raw FIS.

@bric3 bric3 requested a review from a team as a code owner July 8, 2025 16:35
@bric3 bric3 force-pushed the bdu/testability-of-default-metrics branch from 58596ae to 032c64b Compare July 8, 2025 16:51
@bric3 bric3 marked this pull request as draft July 10, 2025 09:04
@bric3 bric3 force-pushed the bdu/testability-of-default-metrics branch from 032c64b to f79bffc Compare February 3, 2026 15:20
bric3 added 2 commits February 3, 2026 16:34
…efaultConfig was false

When useSimplifiedDefaultConfig is false, defaultConfig is an empty string, which creates a line with just 8 spaces in the YAML file. This isn't ideal YAML formatting and could potentially cause issues with YAML parsers.
 - Replace unavailable openjdk:7-jdk image with azul/zulu-openjdk:7
 - Remove docker/setup-docker-action as Docker is pre-installed on GitHub runners
@bric3 bric3 force-pushed the bdu/testability-of-default-metrics branch from ce262f5 to 3556c8c Compare February 3, 2026 20:12
After renaming the test's default-jmx-metrics.yaml to simplified-default-jmx-metrics.yaml
in 279048f, the test was loading the full production default metrics instead of the
simplified version, causing the test to collect 28 metrics instead of the expected 14.

This fix explicitly sets default-jmx-metrics-definitions to use the simplified version.
@bric3 bric3 force-pushed the bdu/testability-of-default-metrics branch from 668d63e to 1703a07 Compare February 3, 2026 21:09
- Add simplified-default-jmx-metrics.yaml to jmx_0 instances in service discovery configs
- Update testServiceDiscovery expectation from 63 to 35 metrics to match simplified defaults
- testServiceDiscoveryLong already had correct expectation (35 metrics)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant