Skip to content

Aggregate Stackdriver output requests #5404

@Legogris

Description

@Legogris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/gcpGoogle Cloud plugins including cloud_pubsub, cloud_pubsub_push, stackdriverbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions