Add instrumentation implementation

The instrumentation implementation adds the ability to track counters for dimensional data in the codebase. Instrumentation points will be added to different parts of the codebase in upcoming CLs. The ability to export the data to Stackdriver will also be added in an upcoming CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130195199
This commit is contained in:
shikhman 2016-08-13 13:19:31 -07:00 committed by Ben McIlwain
parent 3efe09616c
commit 82ab624b36
2 changed files with 12 additions and 0 deletions

View file

@ -480,6 +480,17 @@ public final class ConfigModule {
return Duration.standardSeconds(30);
}
/**
* Time interval between metric writes to Stackdriver.
*
* @see google.registry.monitoring.stackdriver.MonitoringComponent
*/
@Provides
@Config("metricWriteInterval")
public static Duration provideMetricWriteInterval() {
return Duration.standardSeconds(60);
}
/** Duration after watermark where we shouldn't deposit, because transactions might be pending. */
@Provides
@Config("transactionCooldown")