Skip to content

feature(googlecloudspannerreceiver): Allow specifying scraping all databases for a Spanner instance #36553

Open
@adinhodovic

Description

@adinhodovic

Component(s)

googlecloudspannerreceiver

Is your feature request related to a problem? Please describe.

I'd like to not have to specify databases for the googlecloudspannerreceiver. They're generated and would be great to just configure the collector to list all existing databases for an instance and then just scrape them.

Describe the solution you'd like

    receivers:
      googlecloudspanner:
        collection_interval: 60s
        projects:
        - instances:
            instance_id: <test>
          project_id: <test>

Alternatively adding a flag to scrape all or .*.

    receivers:
      googlecloudspanner:
        collection_interval: 60s
        projects:
        - instances:
          - databases:
            - ".*"
            // or scrapeAll config
            scrapeAll: true
            instance_id: <test>
          project_id: <test>

Would this be considered?

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions