-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCP Carbon footprint metricset #34820
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
353b244
to
6e6ef04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of comments, but overall 👍 from me!
aa65716
to
70f1c55
Compare
70f1c55
to
b27448b
Compare
@@ -329,6 +329,13 @@ metricbeat.modules: | |||
dataset_id: "dataset id" | |||
table_pattern: "table pattern" | |||
cost_type: "regular" | |||
metricsets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be under it's own - module: gcp
section? As it stands, it looks like it's part of the previous - module: gcp
section that has the billing
metricset in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's absolutely true. I guess the way it was overrides the billing metricset. I'm surprised no tests failed.
b27448b
to
cba6b07
Compare
cba6b07
to
ed9df0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a nitpick but LGTM.
Co-authored-by: Shaunak Kashyap <[email protected]>
* set up carbon footprint metricset * add changelog entry * fix sample data * add nolint:typecheck * fix remaining lint errors * fix data.json * remove changelog-developer entry * move carbon config into its own gcp module * Update x-pack/metricbeat/module/gcp/_meta/config.yml Co-authored-by: Shaunak Kashyap <[email protected]> * run make update --------- Co-authored-by: Shaunak Kashyap <[email protected]>
What does this PR do?
This PR sets up a new GCP metricbeat to retrieve the Google Carbon Footprint data, using the BigQuery export.
Why is it important?
This is required as part of setting up a GCP Cloud Carbon Footprint integration.
See elastic/integrations#2039
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Run the integration tests against the
elastic-obs-integrations-dev
GCP project.Related issues
Use cases
This PR introduces a new GCP metricbeat type, to retrieve Carbon Footprint data from BigQuery.
Logs
N/A