Skip to content

BatchProcessor limit data point rather than metrics #2754

@kisieland

Description

@kisieland

Is your feature request related to a problem? Please describe.
Google Cloud Exporter communicate with an API that has a hard limit on number of data points sent in one request.
Introducing a Batch Processor before it can lead to situations in which the number of sent metrics is smaller than the limit but, the number of data points is above the limit, effectively dropping some of the data.

Describe the solution you'd like
I am proposing a new key (count_metric_data_points) in the BatchProcessor, that would be a boolean, which defaults to false.
False would correspond to current behaviour, whereas true would make processor count and limit data points rather than metrics.

Describe alternatives you've considered
I've considered introducing the limiting and batching in the exporter itself, but this would introduce a lot of custom logic that is already present in batch processor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions