Skip to content

Fixes to loadbalancing_metrics datastream - #3986

Merged
endorama merged 5 commits into
elastic:mainfrom
endorama:gcp-loadlabancing-fixes
Aug 12, 2022
Merged

Fixes to loadbalancing_metrics datastream#3986
endorama merged 5 commits into
elastic:mainfrom
endorama:gcp-loadlabancing-fixes

Conversation

@endorama

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds some fixes for issues that slipped through the review of the loadbalancing_metrics datastream:

  • fix credentials_json escaping
  • set period default to 60s
  • fix event.dataset

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

Without this change collection fails with this error:
```
[constant_keyword] field [event.dataset] only accepts values that are equal to the value defined in the mappings [gcp.loadbalancing], but got [gcp.loadbalancing_metrics]
```
@endorama
endorama requested review from a team as code owners August 11, 2022 10:32
@elasticmachine

elasticmachine commented Aug 11, 2022

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-12T08:55:54.660+0000

  • Duration: 19 min 36 sec

Test stats 🧪

Test Results
Failed 0
Passed 69
Skipped 0
Total 69

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.
@elasticmachine

elasticmachine commented Aug 11, 2022

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (4/4) 💚
Files 100.0% (4/4) 💚 2.857
Classes 100.0% (4/4) 💚 2.857
Methods 92.857% (65/70) 👍 3.643
Lines 95.443% (1173/1229) 👍 4.791
Conditionals 100.0% (0/0) 💚
@endorama endorama changed the title Fixes to loadbalancing_metrics datastream Aug 12, 2022

@tommyers-elastic tommyers-elastic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from the changelog, LGTM

- description: Add GCP Load Balancing Metricset
type: enhancement
link: https://github.com/elastic/integrations/pull/2308
- description: Fix credentials_json escaping in loadbalancing_metrics

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some strange things going on here :)

@endorama
endorama merged commit 3cdf463 into elastic:main Aug 12, 2022
@endorama
endorama deleted the gcp-loadlabancing-fixes branch August 12, 2022 10:06
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants