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

[Metricbeat] Add Couchbase's Sync Gateway module #25599

Merged
merged 20 commits into from
Jun 29, 2021

Conversation

sayden
Copy link
Contributor

@sayden sayden commented May 6, 2021

WIP

What does this PR do?

This PR adds a Metricset for Sync Gateway https://docs.couchbase.com/sync-gateway/2.7/introduction.html Edge Computing in Couchbase

Why is it important?

Couchbase users can rely on some features provided by the Sync Gateway to sync Couchbase Lite and Servers. This Metricset allows detailed monitorization of the Sync Gateways services.

Checklist

  • My code follows the style guidelines of this project
  • 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 in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@sayden sayden added enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team labels May 6, 2021
@sayden sayden self-assigned this May 6, 2021
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels May 6, 2021
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 6, 2021

💚 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #25599 updated

  • Start Time: 2021-06-24T15:38:45.682+0000

  • Duration: 103 min 57 sec

  • Commit: 5865aa9

Test stats 🧪

Test Results
Failed 0
Passed 8700
Skipped 2517
Total 11217

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 8700
Skipped 2517
Total 11217

@sayden sayden added 7.14 Candidate backport-v7.14.0 Automated backport with mergify labels May 28, 2021
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

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

I see this is still a draft PR but just in case the config is forgotten 😬 I think we are missing the config.yml file here :)

@sayden sayden marked this pull request as ready for review June 2, 2021 17:15
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@sayden sayden changed the title [Metricbeat] Add Sync Gateway Metricset to Couchbase module [Metricbeat] Add Couchbase's Sync Gateway module Jun 2, 2021
@sayden
Copy link
Contributor Author

sayden commented Jun 2, 2021

Okay so I moved everything to a new module 🙂

@sayden
Copy link
Contributor Author

sayden commented Jun 2, 2021

/test

mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing"
)

func TestData(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way to add TestMetricsetFieldsDocumented somewhere for this module? For example: https://github.com/elastic/beats/blob/master/x-pack/metricbeat/module/azure/compute_vm/compute_vm_integration_test.go#L31

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool! I added them all but in db metricset as it seems there's some bug in the testing script where it doesn't recognize some fields as being documented even when they are there (I checked like.... 10 times 😅 )

I'll take a look at the script once I finish with few things.

type: group
description: >
SyncGateway per replication metrics.
release: ga
Copy link
Contributor

Choose a reason for hiding this comment

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

straight to GA?

Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

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

Looks good to me besides my concern on going GA straight for this module. WDYT? I will approve the PR and let you decide if you want to go GA or Beat :)

@sayden
Copy link
Contributor Author

sayden commented Jun 24, 2021

Looks good to me besides my concern on going GA straight for this module. WDYT? I will approve the PR and let you decide if you want to go GA or Beat :)

I didn't realized that the metricsets appear as GA too (instead of beta). Thank you! I changed them all

@sayden sayden merged commit 77eb466 into elastic:master Jun 29, 2021
mergify bot pushed a commit that referenced this pull request Jun 29, 2021
v1v added a commit to v1v/beats that referenced this pull request Jun 29, 2021
…arwin-arm64

* upstream/master: (295 commits)
  Update urllib to 1.26.5. (elastic#26380)
  Update golang.org/x/crypto (elastic#26448)
  [Filebeat] Update Fortinet Ingest Pipeline (elastic#24816)
  Move parsers outside of filestream input so others can use them as well (elastic#26541)
  [Filebeat] Fix `threatintel.indicator.url.full` field not populating (elastic#26508)
  [Filebeat] Add network direction processor to Zeek and Suricata modules (elastic#24620)
  Logging code cleanup related to Nomad auto-discovery (elastic#26498)
  [Metricbeat] Add Couchbase's Sync Gateway module (elastic#25599)
  Refactor add_cloud_metadata to handle ECS fields easier (elastic#26438)
  [Elastic Agent] Improper casting of int64 (elastic#26520)
  [Elastic Agent] Enable configuring monitoring namespace (elastic#26439)
  [Heartbeat] configure permissions for synthetics config (elastic#26393)
  Osquerybeat: set the raw index name to supress the timestamp suffix (elastic#26545)
  [Heartbeat] add screenshots config to synthetics (elastic#26455)
  [Elastic Agent] Use http2 to connect to Fleet Server. (elastic#26474)
  Remove all docs about  Beats central management (elastic#26399)
  update data.json for gcp billing (elastic#26506)
  Skip x-pack metricbeat tests (elastic#26537)
  [Elastic Agent] Fix issue with FLEET_CA not being used with Fleet Server in container (elastic#26529)
  Add changelog entry for  elastic#26224 (elastic#26531)
  ...
mergify bot pushed a commit that referenced this pull request Jul 30, 2021
kaiyan-sheng added a commit that referenced this pull request Jul 30, 2021
…module (#27155)

* [Metricbeat] Add Couchbase's Sync Gateway module (#25599)


(cherry picked from commit 77eb466)

* rerun mage update

Co-authored-by: Mario Castro <mariocaster@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.14 Candidate backport-v7.14.0 Automated backport with mergify enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants