Class S2SAuthZMetrics
s2s-authz-checks-rate, tagged layer
(L2/L3b), outcome (allow/deny/continue/abstain), and tokenType.
Recorded in S2SConnectionLevelAuthZProvider.findRule(KafkaPrincipal, Set, String, Action) (L2) and S2SServiceLevelAuthZProvider.findRule(KafkaPrincipal, Set, String, Action) (L3b).
Kafka's Sensor carries no tags of its own -- tags live on the MetricName attached to a sensor at construction time (see IpFilteringAuthMetrics's error-type tag and
EmbeddedAuthorizer.AuthorizerMetrics's per-
AuthorizeResult sensor map for the precedent this follows). layer and
outcome are small closed sets (5 valid combinations total), and the LAT tokenType
claim is bounded in practice to the two known token types plus "none"/"other" fallbacks, so
this class pre-builds one tagged sensor per valid (layer, outcome, tokenType-bucket)
combination up front rather than forking sensor names per layer.
-
Field Details
-
LAYER_L2
- See Also:
-
LAYER_L3B
- See Also:
-
OUTCOME_ALLOW
- See Also:
-
OUTCOME_DENY
- See Also:
-
OUTCOME_CONTINUE
- See Also:
-
OUTCOME_ABSTAIN
- See Also:
-
-
Constructor Details
-
S2SAuthZMetrics
public S2SAuthZMetrics(org.apache.kafka.common.metrics.Metrics metrics)
-
-
Method Details
-
record
-