[GCP] Add cloudsql data streams - #4126
Conversation
🌐 Coverage report
|
|
/test |
🚀 Benchmarks reportTo see the full report comment with |
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
|
@gpop63 does this PR requires elastic/beats#33066? |
|
Yes, we should first merge the CloudSQL Metadata PR (elastic/beats#33066)) and then this one, because we need the metadata to identify which database type generated events. |
|
elastic/beats#33066 has been merged, so we can move forward with this once 8.6.0 is out. |
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
|
Hi! This PR has been stale for a while and we're going to close it as part of our cleanup procedure. We appreciate your contribution and would like to apologize if we have not been able to review it, due to the current heavy load of the team. Feel free to re-open this PR if you think it should stay open and is worth rebasing. Thank you for your contribution! |
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
endorama
left a comment
There was a problem hiding this comment.
Just a minor comment but looks good!
| processors: | ||
| - drop: | ||
| description: Drop if database is not MySQL. | ||
| if: "ctx?.gcp?.labels?.cloudsql?.name != 'mysql'" |
There was a problem hiding this comment.
One thing I think will be useful in the future is to document how we built this check. Is not very clear where this label come from, if it can change or not and where to check in case this pipeline stops working.
Please document this in the cloudsql.md file for future reference.
| processors: | ||
| - drop: | ||
| description: Drop if database is not PostgreSQL. | ||
| if: "ctx?.gcp?.labels?.cloudsql?.name != 'postgres'" |
| processors: | ||
| - drop: | ||
| description: Drop if database is not SQLServer. | ||
| if: "ctx?.gcp?.labels?.cloudsql?.name != 'sqlserver'" |
|
Package gcp - 2.24.0 containing this change is available at https://epr.elastic.co/search?package=gcp |
* add cloudsql mysql data stream * add cloudsql postgresql data stream * add cloudsql sqlserver data stream * add cloudsql docs * add changelog and cloudsql policy template * bump manifest version * add mysql ingest pipeline * add postgresql ingest pipeline * add sql server ingest pipeline * add mysql datastream suffixes, units and metric_types add drop processor if database is not mysql * add postgres datastream suffixes, units and metric_types add drop processor if database is not postgres * add sqlserver datastream suffixes, units and metric_types add drop processor if database is not sqlserver * update cloudsql docs * bump package version * fix field types * update docs * remove duplicated fields from agent due to elastic-package check --------- Co-authored-by: Edoardo Tenani <526307+endorama@users.noreply.github.com>
What does this PR do?
Adds CloudSQL data streams:
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots