-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[Improvement-12563]Add authentication to the Prometheus endpoint and adapt it for Kubernetes (K8S) environments. #17577
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
base: dev
Are you sure you want to change the base?
Conversation
…etes (K8S) environments
.../src/main/java/org/apache/dolphinscheduler/common/config/ActuatorFilterRegistrationBean.java
Fixed
Show fixed
Hide fixed
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.
Why don't directly use the security feature provided by springboot
management:
security:
enabled: true
First, it didn't take effect, possibly due to issues with my testing. |
It didn't take effect, might due to we should add |
Alright, I will spend some time to test it. |
# Conflicts: # dolphinscheduler-bom/pom.xml
…heduler into Improvement-12563
|
@ruanwenjun @SbloodyS Could u plz help review when available? Thanks. |
|


Purpose of the pull request
close #12563
Brief change log
Add authentication to the Prometheus endpoint and adapt it for Kubernetes (K8S) environments.
This pull request is already covered by existing tests, such as (please describe tests).
--api
curl -s 'http://127.0.0.1:12345/dolphinscheduler/actuator/prometheus' -H 'Authorization: Basic xxxxx'
--alert
curl -s 'http://127.0.0.1:50053/actuator/prometheus' -H 'Authorization: Basic xxxxx'
--master
curl -s 'http://127.0.0.1:5679/actuator/prometheus' -H 'Authorization: Basic xxxxx'
--worker
curl -s 'http://127.0.0.1:1235/actuator/prometheus' -H 'Authorization: Basic xxxxx'
Pull Request Notice
Pull Request Notice
If your pull request contains incompatible change, you should also add it to
docs/docs/en/guide/upgrade/incompatible.md