Skip to content

Commit

Permalink
Disable auto exclude (#1023)
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 21c621c commit a21ca80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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 @@ -61,6 +60,7 @@ 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,6 +84,9 @@ 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,9 +6,11 @@
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 a21ca80

Please sign in to comment.