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

Bug fix: Dashboard Overview, Stat Joining #972

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Bug fix: Dashboard Overview, Stat Joining #972

merged 2 commits into from
Jun 25, 2020

Conversation

c0ffeec0der
Copy link

Problem :
does not show new pod joining

How to simulate:

  1. Deploy using scylla operator for 1 pod
  2. Add 1 pod

Root cause:
Arithmetic addition in prometheus expr is not working if one condition is empty. Only work when both condition return value.

Fix:

Original code

count(scylla_node_operation_mode==1) + count(scylla_node_operation_mode==2)OR vector(0)

Fixing code

count(scylla_node_operation_mode<=2)OR vector(0)

Question:

  1. Is this fix is acceptable? If yes, I will update the other related dashboard templates
  2. Any script to run after updating the templates? I ran 'generate-dashboard.sh', it updated the files in grafana/build

Problem :
does not show new pod joining

How to simulate:
1. Deploy using scylla operator for 1 pod
2. Add 1 pod

Root cause:
Arithmetic addition in prometheus expr is not working if one condition is empty. Only work when both condition return value.

Fix:

Original code
>count(scylla_node_operation_mode==1) +  count(scylla_node_operation_mode==2)OR vector(0)

Fixing code
>count(scylla_node_operation_mode<=2)OR vector(0)

Question:
1. Is this fix is acceptable? If yes, I will update the other related dashboard
2. Any script to run after updating the templates? I ran 'generate-dashboard.sh', it updated the files in grafana/build
@c0ffeec0der c0ffeec0der changed the title Bug fix: Joining stat Bug fix: Dashboard Overview, Stat Joining Jun 23, 2020
@c0ffeec0der
Copy link
Author

Hi guys, any comment? I'd be happy to update the other templates :)

@amnonh
Copy link
Collaborator

amnonh commented Jun 24, 2020

@c0ffeec0der thanks for the PR.
please add an issue this PR is closing, also, please unless github made me miss it, I didn't see the generated dashboard.

@c0ffeec0der
Copy link
Author

Issue created, #976

The generated dashboard:

  • grafana/build/ver_3.3/scylla-overview.3.3.json
  • grafana/build/ver_4.0/scylla-overview.4.0.json

Question:

  • other than running 'generate-dashboard.sh', any other script to run to generate dashboard?
  • Is this fix acceptable? I will then proceed to fix the same panel on other dashboard

@amnonh
Copy link
Collaborator

amnonh commented Jun 24, 2020

You should run the ./generate-dashboard.sh per version:

./generate-dashboard.sh -v master,4.0,4.1,3.3,2019.1,2018.1,3.2

Problem :
does not show new pod joining

How to simulate:
1. Deploy using scylla operator for 1 pod
2. Add 1 pod

Root cause:
Arithmetic addition in prometheus expr is not working if one condition is empty. Only work when both condition return value.

Fix:

Original code
>count(scylla_node_operation_mode==1) +  count(scylla_node_operation_mode==2)OR vector(0)

Fixing code
>count(scylla_node_operation_mode<=2)OR vector(0)
@c0ffeec0der
Copy link
Author

Ok, done. The other dashboard that have panel 'joining' is 'alternator'. Ran generate-dashboards.sh for all version

@amnonh amnonh merged commit 7d6c793 into scylladb:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants