fix wrong prometheus-config in working-with-prometheus-in-control-plane#968
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary of ChangesHello @XiShanYongYe-Chang, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical issue in the Prometheus monitoring documentation for Karmada, where the provided configuration prevented Prometheus from correctly scraping metrics from the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly fixes an issue in the Prometheus configuration documentation that caused target scrape errors. The change to use __meta_kubernetes_pod_ip for constructing the target address is the right approach.
I have two main points of feedback:
- One of the documentation files has an unrelated
kubernetes-apiserverjob removed, which seems to be a mistake. - The metrics port for
karmada-scheduleris changed to8080. While this appears correct for thelocal-up-karmada.shenvironment, it differs from the default port (10351). I've suggested adding comments to clarify this for future readers.
Please see the detailed comments below.
...in-content-docs/current/administrator/monitoring/working-with-prometheus-in-control-plane.md
Show resolved
Hide resolved
docs/administrator/monitoring/working-with-prometheus-in-control-plane.md
Show resolved
Hide resolved
...in-content-docs/current/administrator/monitoring/working-with-prometheus-in-control-plane.md
Show resolved
Hide resolved
...tent-docs/version-v1.16/administrator/monitoring/working-with-prometheus-in-control-plane.md
Show resolved
Hide resolved
...oned_docs/version-v1.16/administrator/monitoring/working-with-prometheus-in-control-plane.md
Show resolved
Hide resolved
|
Hi @jabellard I see you have been working on some control plane metrics recently. Could you please help review this PR? |
Signed-off-by: changzhen <changzhen5@huawei.com>
f1499b5 to
816c61e
Compare
Thanks for looking into this. Does that tutorial work end to end? I was thinking of updating it to provide guidance on how to run a Prom stack in-cluster using kube-prom-stack in another PR. That chart also installs the Prometheus operator which takes care of dynamically programming the Prometheus instance. This makes it very easy for users to setup scraping of pod metrics without having to be Prometheus experts. @XiShanYongYe-Chang , @RainbowMango : What do you guys think? |
|
Thanks @jabellard
The process can be guided and run end to end, and I also performed the testing based on this guidance. Looking forward to your new document. |
Thanks. Relabeling rules are bit hard to read, but based on your test reports, things generally look good. /lgtm /cc @RainbowMango for another look. I'll follow up with the updated guide for this soon. |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
When I deploy Prometheus deployment in karmada control plane refer to the doc: https://karmada.io/docs/administrator/monitoring/working-with-prometheus-in-control-plane, I find that I can't get the metrics with the comment
karmada-controller-managerandkarmada-scheduler.I checkout the promethus job health:
It can see that their health was down, so I fiexed it.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: