Skip to content
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

Fixes to loadbalancing_metrics datastream #3986

Merged
merged 5 commits into from
Aug 12, 2022
Merged

Fixes to loadbalancing_metrics datastream #3986

merged 5 commits into from
Aug 12, 2022

Conversation

endorama
Copy link
Member

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
Copy link

elasticmachine commented Aug 11, 2022

💚 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
Copy link

elasticmachine commented Aug 11, 2022

🌐 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 Fixes to loadbalancing_metrics datastream Aug 12, 2022
Copy link
Contributor

@tommyers-elastic tommyers-elastic left a comment

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

@@ -4,6 +4,15 @@
- 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
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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants