Skip to content

Commit

Permalink
Enabled auto exclude (#1024)
Browse files Browse the repository at this point in the history
Signed-off-by: dhoard <[email protected]>
  • Loading branch information
dhoard authored Oct 29, 2024
1 parent 72c1728 commit af2f88b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import io.prometheus.jmx.logger.LoggerFactory;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -60,7 +61,6 @@ private ObjectNameAttributeFilter() {
*/
private ObjectNameAttributeFilter initialize(Map<String, Object> yamlConfig)
throws MalformedObjectNameException {
/*
if (yamlConfig.containsKey(EXCLUDE_OBJECT_NAME_ATTRIBUTES)) {
Map<Object, Object> objectNameAttributeMap =
(Map<Object, Object>) yamlConfig.get(EXCLUDE_OBJECT_NAME_ATTRIBUTES);
Expand All @@ -84,9 +84,6 @@ private ObjectNameAttributeFilter initialize(Map<String, Object> yamlConfig)
} else {
autoExcludeObjectNameAttributes = true;
}
*/

autoExcludeObjectNameAttributes = false;

LOGGER.log(Level.FINE, "dynamicExclusion [%b]", autoExcludeObjectNameAttributes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import java.util.*;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import org.junit.Ignore;
import org.junit.Test;
import org.yaml.snakeyaml.Yaml;

@Ignore
@SuppressWarnings({"unchecked", "rawtypes"})
public class ObjectNameAttributeFilterTest {

Expand Down

0 comments on commit af2f88b

Please sign in to comment.