[Metricbeat] azure: move event report into loop validDim loop#29945
Conversation
|
💚 CLA has been signed |
|
This pull request does not have a backport label. Could you fix it @ClumsyPotato? 🙏
NOTE: |
|
/test |
1 similar comment
|
/test |
7a43c53 to
0b0a1be
Compare
|
Pinging @elastic/integrations (Team:Integrations) |
|
@ClumsyPotato Thank you so much for your contribution!! |
|
/test |
|
@kaiyan-sheng Glad i can help. I am open for suggestion and changes :) Can you also make sure that this fix gets backportet to version 7.x? That would be awsome :3 |
|
@ClumsyPotato Sorry for the delay on reviewing this PR! Overall it looks good, one nit is seems like there are several lines of code are repeated: Could you refactor this a bit please? Also it would be good to run |
|
/test |
|
@kaiyan-sheng thanks for the input. We just moved the whole block into its own function. Hope thats fine now^^ |
|
@ClumsyPotato Thanks for the change! What I usually do to regenerate data.json file is: (using compute VM as an example) in azure/compute_vm/compute_vm_integration_test.go, remove This is probably not the right way to run the test but it works 😂 |
|
Should be possible to run Note the A note about tags: the I don't have an Azure environment setup to test this PR right now, but if you can try this command and confirm it works I'll add it to the developer documentation :) |
|
/test |
c7e917e to
14323e9
Compare
|
Hey @shelly-yao @endorama |
|
/test |
|
Hello @kaiyan-sheng, |
|
Hey @Patrick-Eichhorn, sorry we won't be able to backport it to 7.13.x because we are not planning to release any new patch release for 7.13 anymore. |
Co-authored-by: Adrian Tomalla <adrian.tomalla@novatec-gmbh.de> Co-authored-by: Patrick Eichhorn <patrick.eichhorn@novatec-gmbh.de> (cherry picked from commit ef7a0b9)
Co-authored-by: Adrian Tomalla <adrian.tomalla@novatec-gmbh.de> Co-authored-by: Patrick Eichhorn <patrick.eichhorn@novatec-gmbh.de> (cherry picked from commit ef7a0b9)
Co-authored-by: Adrian Tomalla <adrian.tomalla@novatec-gmbh.de> Co-authored-by: Patrick Eichhorn <patrick.eichhorn@novatec-gmbh.de> (cherry picked from commit ef7a0b9)
…into feature/use-with-kind-k8s-env * 'feature/use-with-kind-k8s-env' of github.com:v1v/beats: (52 commits) ci: home is declared within withBeatsEnv ci: use withKindEnv step ci: use getBranchesFromAliases and support next-patch-8 (elastic#30400) Update fields.yml (elastic#29609) Heartbeat: fix browser metrics and trace mappings (elastic#30258) Apply light edits to 8.0 changelog (elastic#30351) packetbeat/beater: make sure Npcap installation runs before interfaces are needed (elastic#30396) Add a ring-buffer reporter to libbeat (elastic#28750) Osquerybeat: Add install verification for osquerybeat (elastic#30388) update windows matrix support (elastic#30373) Refactor of metricbeat process-gathering metrics and system/process (elastic#30076) adjust next changelog wording (elastic#30371) [Metricbeat] azure: move event report into loop validDim loop (elastic#29945) fix: report GitHub Check before the cache (elastic#30372) Add support for non-unique keys in Kafka output headers (elastic#30369) ci: 6 major branch reached EOL (elastic#30357) reduce Elastic Agent shut down time by stopping processes concurrently (elastic#29650) [Filebeat] Add message to register encode/decode debug logs (elastic#30271) [libbeat] kafka message header support (elastic#29940) Heartbeat: set duration to zero for syntax errors (elastic#30227) ...
What does this PR do?
Moved the report.Event() function into the loop that iterates over all grouped Dimension in order to report all events instead of just a single one
Why is it important?
Trying to fix the issue in #27226
If a azure metric endpoint with multiple dimensions is pulled only one dimension is send back to elastic
Checklist
[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works[] I have added an entry inCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues
Closes #27226
Also relates to this
https://support.elastic.co/cases/5008X000023agMSQAY
###Backport
Pls backport this to version 7.x.x