Normalize metric names
Make git/upload-pack a folder so we can store other metrics below it related to git-upload-pack serving. Change - for _ in sshd/sessions/authentication_failures. This makes the name more consistent with the other metrics currently exported. Change-Id: Ica64d512de521155bf91c25be2576b70db56ca90
This commit is contained in:
parent
ceaa6624cd
commit
232c18da1b
@ -36,7 +36,7 @@ public class UploadPackMetricsHook implements PostUploadHook {
|
||||
@Inject
|
||||
UploadPackMetricsHook(MetricMaker metricMaker) {
|
||||
upload = metricMaker.newCounter(
|
||||
"git/upload-pack",
|
||||
"git/upload-pack/request_count",
|
||||
new Description("Total number of git-upload-pack requests")
|
||||
.setRate()
|
||||
.setUnit("requests"),
|
||||
|
@ -275,7 +275,7 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
||||
.setUnit("sessions"));
|
||||
|
||||
final Counter0 authFailures = metricMaker.newCounter(
|
||||
"sshd/sessions/authentication-failed",
|
||||
"sshd/sessions/authentication_failures",
|
||||
new Description("Rate of SSH authentication failures")
|
||||
.setRate()
|
||||
.setUnit("failures"));
|
||||
|
Loading…
Reference in New Issue
Block a user