Google Cloud Monitoring Writing Datapoints Faster than Maximum Sampling Period

Viewed 659

Context:

I'm attempting to use Google Cloud's monitoring SDK to publish metrics on error status codes, latency and other server-side metrics.

Due to the rate of requests per second on my machines, this will exceed Google's metric limit of 1 datapoint for 10 seconds.

I am using the instance_id as one of the labels, so they will be unique per machine, but I will still exceed the 1 datapoint / 10 seconds.

Question:

As mentioned in a similar question, here, an option would be to log, buffer and forward the messages. This seems strange to have each customer implement this for common high-rate metric use-cases.

Is there an alternative way of recording high-rate metrics with the sdk such as latency, num requests, num errors?

Resources:

https://cloud.google.com/monitoring/quotas
https://cloud.google.com/monitoring/custom-metrics/creating-metrics#monitoring_create_metric-nodejs
One or more points were written more frequently than the maximum sampling period configured for the metric

0 Answers
Related