elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
103 stars 4.92k forks source link

[8.x](backport #40918) x-pack/metricbeat/module/gcp: Override GCP API endpoint in metric client #40938

Closed mergify[bot] closed 1 month ago

mergify[bot] commented 1 month ago

Proposed commit message

The GCP metric client does not currently allow overriding with a custom endpoint, which is necessary for testing against a mock GCP API endpoint. Resolved this issue by implementing a check to determine if an endpoint is specified in the GCP configuration, and subsequently overriding the ClientOption with that endpoint.

Checklist

Disruptive User Impact

Author's Checklist

How to test this PR locally

Related issues

Use cases

Screenshots

Logs


This is an automatic backport of pull request #40918 done by Mergify.

botelastic[bot] commented 1 month ago

This pull request doesn't have a Team:<team> label.

mergify[bot] commented 1 month ago

This pull request has not been merged yet. Could you please review and merge it @Linu-Elias? 🙏