mirror of
https://github.com/google/nomulus.git
synced 2025-06-06 20:45:40 +02:00
Remove old EPP processing time metrics (#206)
This commit is contained in:
parent
545a03618b
commit
0a779612f6
1 changed files with 0 additions and 21 deletions
|
@ -62,24 +62,6 @@ public class EppMetrics {
|
||||||
"count",
|
"count",
|
||||||
LABEL_DESCRIPTORS_BY_TLD);
|
LABEL_DESCRIPTORS_BY_TLD);
|
||||||
|
|
||||||
private static final EventMetric processingTimeByRegistrar =
|
|
||||||
MetricRegistryImpl.getDefault()
|
|
||||||
.newEventMetric(
|
|
||||||
"/epp/processing_time",
|
|
||||||
"EPP Processing Time By Registrar",
|
|
||||||
"milliseconds",
|
|
||||||
LABEL_DESCRIPTORS_BY_REGISTRAR,
|
|
||||||
DEFAULT_FITTER);
|
|
||||||
|
|
||||||
private static final EventMetric processingTimeByTld =
|
|
||||||
MetricRegistryImpl.getDefault()
|
|
||||||
.newEventMetric(
|
|
||||||
"/epp/processing_time_by_tld",
|
|
||||||
"EPP Processing Time By TLD",
|
|
||||||
"milliseconds",
|
|
||||||
LABEL_DESCRIPTORS_BY_TLD,
|
|
||||||
DEFAULT_FITTER);
|
|
||||||
|
|
||||||
private static final EventMetric requestTime =
|
private static final EventMetric requestTime =
|
||||||
MetricRegistryImpl.getDefault()
|
MetricRegistryImpl.getDefault()
|
||||||
.newEventMetric(
|
.newEventMetric(
|
||||||
|
@ -118,10 +100,7 @@ public class EppMetrics {
|
||||||
long processingTime =
|
long processingTime =
|
||||||
metric.getEndTimestamp().getMillis() - metric.getStartTimestamp().getMillis();
|
metric.getEndTimestamp().getMillis() - metric.getStartTimestamp().getMillis();
|
||||||
String commandName = metric.getCommandName().orElse("");
|
String commandName = metric.getCommandName().orElse("");
|
||||||
processingTimeByRegistrar
|
|
||||||
.record(processingTime, commandName, metric.getClientId().orElse(""), eppStatusCode);
|
|
||||||
String tld = metric.getTld().orElse("");
|
String tld = metric.getTld().orElse("");
|
||||||
processingTimeByTld.record(processingTime, commandName, tld, eppStatusCode);
|
|
||||||
requestTime.record(processingTime, commandName, getTrafficType(tld).toString(), eppStatusCode);
|
requestTime.record(processingTime, commandName, getTrafficType(tld).toString(), eppStatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue