-
Notifications
You must be signed in to change notification settings - Fork 923
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
[KYUUBI #5834] Add Grafana dashboard template #5147
Conversation
plz help review @pan3793 @zwangsheng . Thanks all.😄 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5147 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 687 687
Lines 42463 42463
Branches 5796 5796
======================================
Misses 42463 42463 ☔ View full report in Codecov by Sentry. |
Could you append a full screenshot to the desciption for demonstrating the dashboard? |
Added screenshots. Thanks. |
Yup. We can remove the threshold if it's not required. @zwangsheng |
plz review it @pan3793 |
grafana/Dockerfile
Outdated
# under the grafana folder. | ||
# 1. docker build --build-arg PROMETHEUS_URL_ARG="" -t grafana:kyuubi -f Dockerfile . | ||
# Options: | ||
# --build-arg the url to access promethues datasource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the value should be like? could you please add an example in the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it.
grafana/Dockerfile
Outdated
# limitations under the License. | ||
# | ||
|
||
# Usage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please create a REAMDE.md
in the same folder, and move this guidance to README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appreciate it. I already provided REAMDE.md to guide users.
Currently, the default value of |
grafana/Dockerfile
Outdated
ENV PROMETHEUS_URL=$PROMETHEUS_URL_ARG | ||
COPY ./dashboard.yml /etc/grafana/provisioning/dashboards/ | ||
COPY ./datasource.yml /etc/grafana/provisioning/datasources/ | ||
COPY ./*.json /var/lib/grafana/dashboards/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add empty line at end of file.
grafana/dashboard.yml
Outdated
editable: true | ||
allowUiUpdates: true | ||
options: | ||
path: /var/lib/grafana/dashboards/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
grafana/datasource.yml
Outdated
access: proxy | ||
url: ${PROMETHEUS_URL} | ||
isDefault: true | ||
editable: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@pan3793 plz help review it |
I'm OK with this, but it seems that we'd better to raise a discussion thread in dev |
The default metrics reporter has been set to Prometheus in #5344. |
Thank you @bowenliang123 |
hey folks, any blockers on this 🤔 ? |
It still needs some time to be reviewed. |
Hi, @zhaohehuhu some metrics do not include instance filtering, such as the expression in 'Thread Status'. When testing with Kyuubi version '1.9.1', metric names may depending on the Garbage Collector. For example, 'kyuubi_memory_usage_pools_PS_Eden_Space_used' may appear as 'kyuubi_memory_usage_pools_Eden_Space_used'. |
Thanks. I'll update it. |
d7f1553
to
465f054
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to merge this PR and polish the dashboard in follow-ups.
Thanks, merging to master |
Why are the changes needed?
This PR adds a basic Grafana Dashboard template, also updates the metrics docs to guide users to use Prometheus and Grafana to monitor the Kyuubi server.
The Grafana Dashboard template is exported from the Grafana OSS v11.4.0
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate