Package io.prometheus.jmx
Class MatchedRule
java.lang.Object
io.prometheus.jmx.MatchedRule
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
toString()
static MatchedRule
An unmatched MatchedRule, used when no rule matching a JMX bean has been found in the configuration.withValue
(double value)
-
Constructor Details
-
MatchedRule
-
-
Method Details
-
withValue
-
unmatched
An 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
-
isMatched
-
toString
-
equals
-
hashCode
-