Skip to content

Commit 1637391

Browse files
authored
Fix security apm metric names (#104119)
fix the metric names not adhering to the validation rules
1 parent 82a5d66 commit 1637391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/metric/SecurityMetricType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public enum SecurityMetricType {
1414

1515
AUTHC_API_KEY(
1616
SecurityMetricGroup.AUTHC,
17-
new SecurityMetricInfo("es.security.authc.api_key.success.count", "Number of successful API key authentications.", "count"),
18-
new SecurityMetricInfo("es.security.authc.api_key.failures.count", "Number of failed API key authentications.", "count"),
17+
new SecurityMetricInfo("es.security.authc.api_key.success.total", "Number of successful API key authentications.", "count"),
18+
new SecurityMetricInfo("es.security.authc.api_key.failures.total", "Number of failed API key authentications.", "count"),
1919
new SecurityMetricInfo("es.security.authc.api_key.time", "Time it took (in nanoseconds) to execute API key authentication.", "ns")
2020
),
2121

0 commit comments

Comments
 (0)