mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 16:30:12 +02:00
Enable more DNS update metrics on production
They are useful for viewing and diagnosing problems, and are not that expensive. We aren't enabling all the metrics though - the whole "per batch / per domain" performance indicators are still disabled ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=250876554
This commit is contained in:
parent
dd66664e42
commit
e489539df4
1 changed files with 6 additions and 5 deletions
|
@ -220,10 +220,15 @@ public class DnsMetrics {
|
|||
Duration processingDuration,
|
||||
int numberOfDomains,
|
||||
int numberOfHosts) {
|
||||
// We don't want to record all these metrics in production, as they are quite expensive
|
||||
commitCount.increment(tld, status.name(), dnsWriter);
|
||||
domainsCommittedCount.incrementBy(numberOfDomains, tld, status.name(), dnsWriter);
|
||||
hostsCommittedCount.incrementBy(numberOfHosts, tld, status.name(), dnsWriter);
|
||||
|
||||
// We don't want to record the following metrics in production, as they are quite expensive
|
||||
if (registryEnvironment == RegistryEnvironment.PRODUCTION) {
|
||||
return;
|
||||
}
|
||||
|
||||
int batchSize = numberOfDomains + numberOfHosts;
|
||||
|
||||
processingTimePerCommitDist.record(
|
||||
|
@ -244,10 +249,6 @@ public class DnsMetrics {
|
|||
totalBatchSizePerCommitDist.record(batchSize, tld, status.name(), dnsWriter);
|
||||
|
||||
totalBatchSizePerItemDist.record(batchSize, batchSize, tld, status.name(), dnsWriter);
|
||||
|
||||
commitCount.increment(tld, status.name(), dnsWriter);
|
||||
domainsCommittedCount.incrementBy(numberOfDomains, tld, status.name(), dnsWriter);
|
||||
hostsCommittedCount.incrementBy(numberOfHosts, tld, status.name(), dnsWriter);
|
||||
}
|
||||
|
||||
void recordActionResult(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue