Package io.prometheus.jmx
Class MatchedRule
- java.lang.Object
-
- io.prometheus.jmx.MatchedRule
-
public class MatchedRule extends Object
MatchedRule is the result of matching a JMX bean against the rules present in the configuration file. As rules are matched using regular expressions, caching helps prevent having to match the same beans to the same list of regular expressions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMatched()booleanisUnmatched()static MatchedRuleunmatched()A unmatched MatchedRule, used when no rule matching a JMX bean has been found in the configuration.
-
-
-
Method Detail
-
unmatched
public static MatchedRule unmatched()
A unmatched MatchedRule, used when no rule matching a JMX bean has been found in the configuration. Cached unmatched rules are still a cache hit, that will not produce any metric/value.- Returns:
- the invalid rule
-
isUnmatched
public boolean isUnmatched()
-
isMatched
public boolean isMatched()
-
-