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

Zookeeper beats module is unable to parse some fields on ZK 3.6 and ZK 3.7 mntr responses #30066

Closed
pfcoperez opened this issue Jan 27, 2022 · 1 comment · Fixed by #30068
Closed
Assignees
Labels
bug Team:Integrations Label for the Integrations team

Comments

@pfcoperez
Copy link
Contributor

Problem coordinates:

  • Beats version: 7.17.1
  • ZooKeeper versions >3.6
  • Steps to Reproduce:
  1. Set up Zookeeper module, enable mntr metrics.
  2. Main the configuration point to a 3.7 ZooKeeper ensemble.
  3. All the mntr fields that used to be integers but are now float are not ingested anymore.

The problem is present in the parsing code for the mntr responses from ZooKeeper:

var (
// Matches first the variable name, second the param itself
paramMatcher = regexp.MustCompile("([^\\s]+)\\s+(.*$)")
schema = s.Schema{
"version": c.Str("zk_version"),
"latency": s.Object{
"avg": c.Int("zk_avg_latency"),
"min": c.Int("zk_min_latency"),
"max": c.Int("zk_max_latency"),
},
"packets": s.Object{
"received": c.Int("zk_packets_received"),
"sent": c.Int("zk_packets_sent"),
},
"num_alive_connections": c.Int("zk_num_alive_connections"),
"outstanding_requests": c.Int("zk_outstanding_requests"),
"server_state": c.Str("zk_server_state"),
"znode_count": c.Int("zk_znode_count"),
"watch_count": c.Int("zk_watch_count"),
"ephemerals_count": c.Int("zk_ephemerals_count"),
"approximate_data_size": c.Int("zk_approximate_data_size"),
}

I am working on a patch to make this module compatible with recent ZooKeeper versions.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants