-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Feature Request
Stackdriver currently send a single request for each TimeSeries in a write. This will hit Stackdriver rate limits pretty early. The feedback we got from Google was that we were abusing their API using the current version.
Proposal:
Aggregate separate TimeSeries in batch requests
Current behavior:
Each TimeSeries is sent as a single request:
| timeSeriesRequest := &monitoringpb.CreateTimeSeriesRequest{ |
Desired behavior:
TimeSeries are aggregated together. The reason this is not as simple as just aggregating all TimeSeries passed to write is that if more than one of these contain points for the same TimeSeries, this will yield an error: Duplicate TimeSeries encountered. Only one point can be written per TimeSeries per request. – refers to an attempt to write more than one point to a single time series in the same request, which is not allowed.
It should also be noted that each request can contain a maximum of 200 TimeSeries.