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

Create cluster metrics endpoint that can return metrics for multiple nodes #1974

Closed
bernd opened this Issue Mar 24, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@bernd
Member

bernd commented Mar 24, 2016

Problem description

In a multiple node cluster the web interface does one HTTP call for every node in the cluster to fetch the metrics every 2 seconds.

Steps to reproduce the problem

  1. Setup multi node cluster
  2. See multiple HTTP requests in the network tab of the developer tools every 2 seconds

Proposal

Implement a new REST endpoint that takes a list of node ids and returns the metrics for them.

Environment

  • Graylog Version: Graylog 2.0.0-beta.2-SNAPSHOT (c0846cf)

@bernd bernd added this to the 2.0.0 milestone Mar 24, 2016

@kroepke kroepke added bug S3 P2 labels Mar 24, 2016

@kroepke

This comment has been minimized.

Member

kroepke commented Mar 24, 2016

Rather an "improvement" but since it's a regression to 1.3 we are liberal with the "bug" label.

@bernd bernd self-assigned this Mar 29, 2016

bernd added a commit that referenced this issue Mar 29, 2016

Implement cluster metrics endpoint to fetch from all nodes
Adjust frontend MetricsStore to use the new endpoint. Saves nodes - 1 requests
in a multi node setup.

Fixes #1974

@kroepke kroepke added the triaged label Sep 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment