-
Notifications
You must be signed in to change notification settings - Fork 919
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 #5381] Change the default metrics reporter to Prometheus #5344
Conversation
kyuubi-metrics/src/main/scala/org/apache/kyuubi/metrics/MetricsConf.scala
Outdated
Show resolved
Hide resolved
Could you please mention this change in |
f7404ab
to
4227338
Compare
got it |
docs/deployment/migration-guide.md
Outdated
Both Derby and SQLite are mainly for testing purposes, and they're not supposed to be used in production. | ||
To restore previous behavior, set `kyuubi.metadata.store.jdbc.database.type=DERBY` and | ||
`kyuubi.metadata.store.jdbc.url=jdbc:derby:memory:kyuubi_state_store_db;create=true`. | ||
|
||
* Since Kyuubi 1.8, PROMETHEUS is changed as the default metrics reporter, because PROMETHEUS is a popular and widely |
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 don't need to mention "because ..."
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
26bbb69
to
dae40e1
Compare
docs/configuration/settings.md
Outdated
| kyuubi.metrics.json.location | metrics | Where the JSON metrics file located | string | 1.2.0 | | ||
| kyuubi.metrics.prometheus.path | /metrics | URI context path of prometheus metrics HTTP server | string | 1.2.0 | | ||
| kyuubi.metrics.prometheus.port | 10019 | Prometheus metrics HTTP server port | int | 1.2.0 | | ||
| kyuubi.metrics.reporters | PROMETHEUS | A comma-separated list for all metrics reporters<ul> <li>CONSOLE - ConsoleReporter which outputs measurements to CONSOLE periodically.</li> <li>JMX - JmxReporter which listens for new metrics and exposes them as MBeans.</li> <li>JSON - JsonReporter which outputs measurements to json file periodically.</li> <li>PROMETHEUS - PrometheusReporter which exposes metrics in Prometheus format.</li> <li>SLF4J - Slf4jReporter which outputs measurements to system log periodically.</li></ul> | set | 1.8.0 | |
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.
the version seems incorrect, have you regenerated it?
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.
Thanks. already corrected to right version.
The test failure is related, could you fix it? |
looks like the default port 10019 for prometheus was already in use. |
Codecov Report
@@ Coverage Diff @@
## master #5344 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 590 588 -2
Lines 33493 33427 -66
Branches 4424 4393 -31
======================================
+ Misses 33493 33427 -66
... and 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
check if there is leaked resorces in test, or change the binding port by overriding confs in test |
I already changed the port to 0 but got another Flink issue then. I'm not sure if it's related to prometheus port as the error message is not showing the binding port was used anymore. |
...ver/src/test/scala/org/apache/kyuubi/events/handler/ServerJsonLoggingEventHandlerSuite.scala
Outdated
Show resolved
Hide resolved
@zhaohehuhu the flink test failure is irrelevant, the fix takes effect. |
…ServerJsonLoggingEventHandlerSuite.scala
...ver/src/test/scala/org/apache/kyuubi/events/handler/ServerJsonLoggingEventHandlerSuite.scala
Outdated
Show resolved
Hide resolved
…ServerJsonLoggingEventHandlerSuite.scala
got it. Thanks. |
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.
LGTM.
### _Why are the changes needed?_ Close #5381 change default metrics reporter to prometheus since Kyuubi 1.8 ### _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 - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ Closes #5344 from zhaohehuhu/Improvement-0928. Closes #5381 84f4c82 [hezhao2] reset METRICS_REPORTERS for test case b9ee5f7 [Cheng Pan] Update kyuubi-server/src/test/scala/org/apache/kyuubi/events/handler/ServerJsonLoggingEventHandlerSuite.scala 86165a6 [Cheng Pan] Update kyuubi-server/src/test/scala/org/apache/kyuubi/events/handler/ServerJsonLoggingEventHandlerSuite.scala a3605b6 [hezhao2] set METRICS_PROMETHEUS_PORT to 0 for test cases f1a4d28 [hezhao2] restore version number for kyuubi.metrics.reporters in doc dae40e1 [hezhao2] change default metrics reporter to prometheus Lead-authored-by: hezhao2 <[email protected]> Co-authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]> (cherry picked from commit 4bb67bd) Signed-off-by: Cheng Pan <[email protected]>
Why are the changes needed?
Close #5381
change default metrics reporter to prometheus since Kyuubi 1.8
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
Run test locally before make a pull request
Was this patch authored or co-authored using generative AI tooling?