mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Register quota metrics in GCP proxy
When a quota request is rejected, increment the metric counter by one. Also makes both frontend and backend metrics singleton because all the fields they have a static. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185146804
This commit is contained in:
parent
c34e547659
commit
ce5baafc4a
6 changed files with 137 additions and 15 deletions
|
@ -26,8 +26,10 @@ import google.registry.util.NonFinalForTesting;
|
|||
import io.netty.handler.codec.http.FullHttpRequest;
|
||||
import io.netty.handler.codec.http.FullHttpResponse;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
/** Backend metrics instrumentation. */
|
||||
@Singleton
|
||||
public class BackendMetrics {
|
||||
|
||||
// Maximum request size is defined in the config file, this is not realistic and we'd be out of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue