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

add dashboard service for aggregated information collection #326

Merged
merged 4 commits into from
Oct 1, 2020

Conversation

Omega-Ariston
Copy link
Contributor

@Omega-Ariston Omega-Ariston commented Aug 31, 2020

Fixes #282

Motivation

This is the way I understand how it would be: The access controll is done by environmentController when users retrive the environment list from 'environment' front end page, where the aggregated data is displayed on. And we can then retrieve the total number of tenant and corresponding namespace from certain environments, as well as a list of topicStat, from which we can further retrieve the number of cluster, broker, producer and consumer.

  1. environment -> tenant
    2. tenant -> namespace
  2. environment -> topicStat
    4. topicStat -> cluster
    5. topicStat -> broker
    6. topicStat -> producer
    7. topicStatId -> consumer

For the number of bookies, currently it is not persistent in database, so the bookieservice is called to retrieve the data.

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

As #282 suggested, added some new sql statements in corresponding mapper and a new service to collect aggregated data for dashboard.

Verifying this change

  • [ yes ] Make sure that the change passes the ./gradlew build checks.

@sijie
Copy link
Member

sijie commented Sep 23, 2020

@tuteng Can you review this pull request when you have time?

Copy link
Member

@tuteng tuteng left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you for your contribution

@tuteng tuteng added this to the 0.3.0 milestone Oct 1, 2020
@tuteng tuteng merged commit 0bd2f8a into apache:master Oct 1, 2020
sde-melo pushed a commit to Singlespot/pulsar-manager that referenced this pull request Jan 15, 2021
Fixes apache#282 

### Motivation

This is the way I understand how it would be: The access controll is done by environmentController when users retrive the environment list from 'environment' front end page, where the aggregated data is displayed on. And we can then retrieve the total number of tenant and corresponding namespace from certain environments, as well as a list of topicStat, from which we can further retrieve the number of cluster, broker, producer and consumer.

1. environment -> tenant
                           2. tenant -> namespace
3. environment -> topicStat
                          4. topicStat -> cluster
                          5. topicStat -> broker
                          6. topicStat -> producer
                          7. topicStatId -> consumer

For the number of bookies, currently it is not persistent in database, so the bookieservice is called to retrieve the data.

*Explain here the context, and why you're making that change. What is the problem you're trying to solve.*

### Modifications

As apache#282 suggested, added some new sql statements in corresponding mapper and a new service to collect aggregated data for dashboard.

### Verifying this change

- [ yes ] Make sure that the change passes the `./gradlew build` checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could we add a dashboard in the home page ?
3 participants