Skip to content

[CLOUD-105] cloudkms: add metrics for number of cryptographic requests

Administrator requested to merge jc/CLOUD-105 into main

Created by: unknwon

I have not able to find a way to query GCP API quota usage through GCP APIs, so at the very least we can records how many times we try to initiate requests to Cloud KMS.

We're using Cloud KMS as a utility package (used by several services) not a standalone service so the metric is technically belong to nowhere, but since frontend is making the most of DB calls (that are transparently encrypting/decrypting stuff), I decided to put it in the frontend dashboard.

As for the name of the metric is "cryptographic request" that is based on Cloud KMS docs:

A cryptographic request is an operation that performs an encryption, decryption, digital signature, or retrieval of a public key.

Here is how the graph will look like with faked data locally:

CleanShot 2021-11-22 at 14 22 49@2x

Jira: CLOUD-105

Merge request reports

Loading