[KYUUBI #5834] Add Grafana dashboard template#5147
[KYUUBI #5834] Add Grafana dashboard template#5147zhaohehuhu wants to merge 8 commits intoapache:masterfrom
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.
what's the value should be like? could you please add an example in the description?
grafana/Dockerfile
Outdated
| # limitations under the License. | ||
| # | ||
|
|
||
| # Usage: |
There was a problem hiding this comment.
please create a REAMDE.md in the same folder, and move this guidance to README.md
There was a problem hiding this comment.
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/ No newline at end of file |
There was a problem hiding this comment.
We should add empty line at end of file.
grafana/dashboard.yml
Outdated
| editable: true | ||
| allowUiUpdates: true | ||
| options: | ||
| path: /var/lib/grafana/dashboards/ No newline at end of file |
grafana/datasource.yml
Outdated
| access: proxy | ||
| url: ${PROMETHEUS_URL} | ||
| isDefault: true | ||
| editable: false No newline at end of file |
|
@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
pan3793
left a comment
There was a problem hiding this comment.
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