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

[KYUUBI #5944] Introduce Prometheus and Grafana for Kyuubi Playground #5945

Closed
wants to merge 8 commits into from
Closed

[KYUUBI #5944] Introduce Prometheus and Grafana for Kyuubi Playground #5945

wants to merge 8 commits into from

Conversation

zwangsheng
Copy link
Contributor

🔍 Description

Issue References 🔗

This pull request fixes #5944

Describe Your Solution 🔧

Add prometheus and grafana docker image to docker compose yaml, and by defaults, prometheus will get kyuubi server's metrics and grafana set prometheus as default datasource.

Help developers quickly build a dashboard development environment.

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

In local test

  • all container start success
  • By defaults, prometheus get kyuubi's metrics
  • Grafana take the prometheus as default datasource

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklist 📝

Be nice. Be informative.

@zwangsheng zwangsheng requested a review from pan3793 January 4, 2024 03:30
docker/playground/README.md Outdated Show resolved Hide resolved
@@ -28,3 +28,5 @@ SPARK_VERSION=3.4.2
SPARK_BINARY_VERSION=3.4
SPARK_HADOOP_VERSION=3.3.4
ZOOKEEPER_VERSION=3.6.3
PROMETHEUS_VERSION=v2.45.2
Copy link
Member

Choose a reason for hiding this comment

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

why leave a leading v?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

prometheus docker image requires.

See more tags in https://hub.docker.com/r/prom/prometheus/tags

Copy link
Member

Choose a reason for hiding this comment

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

that's tag, not version. if wanted, we may use apache-kyuubi:${KYUUBI_VERSION}-spark or something

@pan3793 pan3793 changed the title [KYUUBI #5944][Improvement] Introduce Prometheus and Grafana for Kyuubi Playground [KYUUBI #5944] Introduce Prometheus and Grafana for Kyuubi Playground Jan 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9fefd47) 61.26% compared to head (dbf41e3) 61.18%.
Report is 3 commits behind head on master.

❗ Current head dbf41e3 differs from pull request most recent head 031deed. Consider uploading reports for the commit 031deed to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5945      +/-   ##
============================================
- Coverage     61.26%   61.18%   -0.09%     
  Complexity       23       23              
============================================
  Files           621      622       +1     
  Lines         36864    36882      +18     
  Branches       5014     5014              
============================================
- Hits          22586    22566      -20     
- Misses        11848    11877      +29     
- Partials       2430     2439       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

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

LGTM except to one line

@pan3793 pan3793 added this to the v1.9.0 milestone Jan 15, 2024
@pan3793 pan3793 closed this in d54c884 Jan 15, 2024
@pan3793
Copy link
Member

pan3793 commented Jan 15, 2024

Thanks, merged to master

zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this pull request Feb 5, 2024
…ground

# 🔍 Description
## Issue References 🔗

This pull request fixes apache#5944

## Describe Your Solution 🔧

Add prometheus and grafana docker image to docker compose yaml, and by defaults, prometheus will get kyuubi server's metrics and grafana set prometheus as default datasource.

Help developers quickly build a dashboard development environment.

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

In local test
- [x] all container start success
- [x] By defaults, prometheus get kyuubi's metrics
- [x] Grafana take the prometheus as default  datasource

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#5945 from zwangsheng/KYUUBI#5944.

Closes apache#5944

031deed [Binjie Yang] Update docker/playground/README.md
dbf41e3 [zwangsheng] declare metrics related config
e6efe30 [zwangsheng] make grafana as anonymous
404dd42 [zwangsheng] fix comments
f7ca4ae [zwangsheng] fix prometheus
089f8d0 [zwangsheng] eof
6872078 [zwangsheng] add license header
cfa6edf [zwangsheng] [KYUUBI apache#5944][Improvement] Introduce Prometheus and Grafana for Kyuubi Playground

Lead-authored-by: zwangsheng <[email protected]>
Co-authored-by: Binjie Yang <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this pull request Mar 21, 2024
…ground

# 🔍 Description
## Issue References 🔗

This pull request fixes apache#5944

## Describe Your Solution 🔧

Add prometheus and grafana docker image to docker compose yaml, and by defaults, prometheus will get kyuubi server's metrics and grafana set prometheus as default datasource.

Help developers quickly build a dashboard development environment.

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

In local test
- [x] all container start success
- [x] By defaults, prometheus get kyuubi's metrics
- [x] Grafana take the prometheus as default  datasource

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#5945 from zwangsheng/KYUUBI#5944.

Closes apache#5944

031deed [Binjie Yang] Update docker/playground/README.md
dbf41e3 [zwangsheng] declare metrics related config
e6efe30 [zwangsheng] make grafana as anonymous
404dd42 [zwangsheng] fix comments
f7ca4ae [zwangsheng] fix prometheus
089f8d0 [zwangsheng] eof
6872078 [zwangsheng] add license header
cfa6edf [zwangsheng] [KYUUBI apache#5944][Improvement] Introduce Prometheus and Grafana for Kyuubi Playground

Lead-authored-by: zwangsheng <[email protected]>
Co-authored-by: Binjie Yang <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
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.

[Improvement] Introduce Prometheus and Grafana for Kyuubi Playground
3 participants