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

Cherry-pick #22445 to 7.x: Nats module improvements #22614

Merged
merged 3 commits into from
Nov 20, 2020

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Nov 17, 2020

Cherry-pick of PR #22445 to 7.x branch. Original message:

What this PR adds

This PR adds more metrics at connections and routes metricsets. Prior to this no metrics have been collected for each of the connections and for each of the routes. With this PR we collect metrics like in/out bytes etc for each the connections and for each of the routes. In order to have routes in a NATS server a more than 1 NATS servers should be presented creating a NATS cluster. For this docker-compose file of the module adds an extra NATS instance so as populate routes and their respective metrics.

Why it is important

It related to elastic/integrations#359. Next steps would be to enhance/improve dashboards.

How to test this manually

  1. Start the nats cluster using docker-compose file of nats module
  2. Enable nats metricbeat module connections and routes metricsets and point them to the monitoring port of the nats container (exported port of 8222 internal)
  3. Make sure that connection and route details are being collected.

@ChrsMark ChrsMark requested a review from a team as a code owner November 17, 2020 10:30
@ChrsMark ChrsMark added [zube]: In Review backport Team:Platforms Label for the Integrations - Platforms team labels Nov 17, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 17, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 17, 2020

💚 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 #22614 updated]

  • Start Time: 2020-11-19T08:18:18.861+0000

  • Duration: 66 min 13 sec

Test stats 🧪

Test Results
Failed 0
Passed 2244
Skipped 508
Total 2752

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 2244
Skipped 508
Total 2752

@@ -589,6 +589,19 @@ same journal. {pull}18467[18467]
- Expand unsupported option from namespace to metrics in the azure module. {pull}21486[21486]
- Move s3_daily_storage and s3_request metricsets to use cloudwatch input. {pull}21703[21703]
- Duplicate system.process.cmdline field with process.command_line ECS field name. {pull}22325[22325]
- Add connection and route metricsets for nats metricbeat module to collect metrics per connection/route. {pull}22445[22445]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think some extra lines got here

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏼

@ChrsMark ChrsMark requested a review from jsoriano November 18, 2020 08:26
@ChrsMark ChrsMark merged commit 6fe33bb into elastic:7.x Nov 20, 2020
@zube zube bot removed the [zube]: Done label Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants