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
[kube-prometheus-stack] Add resources and SLIs metrics support #4329
base: main
Are you sure you want to change the base?
[kube-prometheus-stack] Add resources and SLIs metrics support #4329
Conversation
5c1e529
to
34b890c
Compare
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.
Hi,
thanks for your PR and improving kube-prometheus-stack. I didn't have the time yet to do a full review and go deeper into the links you provide:
The key question:
Is /metrics/cadvisor
safe to remove? Are the metrics availible somewhere else, e.g. /metrics/resources
? I also have to look later, if the current dashboards/alerts are compatible here.
## Enable scraping Service Level Indicator (SLI) metrics (/metrics/slis) | ||
slis: false | ||
|
||
## SLIs MetricRelabelConfigs to apply to samples after scraping, but before ingestion. | ||
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | ||
## | ||
slisMetricRelabelings: [] | ||
|
||
## SLIs RelabelConfigs to apply to samples before scraping | ||
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | ||
## | ||
slisRelabelings: | ||
- sourceLabels: [__metrics_path__] | ||
targetLabel: metrics_path | ||
# - sourceLabels: [__meta_kubernetes_pod_node_name] | ||
# targetLabel: nodename | ||
|
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.
Can we use a dedicated subkey for SLI? I feel its more readable.
## Enable scraping Service Level Indicator (SLI) metrics (/metrics/slis) | |
slis: false | |
## SLIs MetricRelabelConfigs to apply to samples after scraping, but before ingestion. | |
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | |
## | |
slisMetricRelabelings: [] | |
## SLIs RelabelConfigs to apply to samples before scraping | |
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | |
## | |
slisRelabelings: | |
- sourceLabels: [__metrics_path__] | |
targetLabel: metrics_path | |
# - sourceLabels: [__meta_kubernetes_pod_node_name] | |
# targetLabel: nodename | |
## Enable scraping Service Level Indicator (SLI) metrics (/metrics/slis) | |
sli: | |
enabled: false | |
## SLIs MetricRelabelConfigs to apply to samples after scraping, but before ingestion. | |
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | |
## | |
metricRelabelings: [] | |
## SLIs RelabelConfigs to apply to samples before scraping | |
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig | |
## | |
relabelings: | |
- sourceLabels: [__metrics_path__] | |
targetLabel: metrics_path | |
# - sourceLabels: [__meta_kubernetes_pod_node_name] | |
# targetLabel: nodename | |
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.
I agree, but since kubelet's ServiceMonitor
was structured this way, I had no choice but to adapt it.
I will change the structure as you suggested except for kubelet, but should I also change kubelet to this different structure only for /metrics/slis
?
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.
I will change the structure as you suggested except for kubelet
Pushed. (No modifications have been made for kubelet.)
I don't think |
79436dd
to
2e552c1
Compare
- KEP-1748: Expose Pod Resource Request Metrics - kube-scheduler - KEP-3466: Kubernetes Component SLIs - kube-apiserver - kubelet - kube-controller-manager - kube-scheduler - kube-proxy Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
…dicated subkeys Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
2e552c1
to
7dfa0c7
Compare
I appreciate your review, but currently I have time limitations to checkout and try-out this PR. I never used the endpoints before I someone might have to test it. Maybe @QuentinBisson or @GMartinez-Sisti can assists here |
Thanks for the PR @kariya-mitsuru 🙏 I actually have an upcoming project at work that will benefit from this, so I'll need to read on this. Might take some weeks for me to pick it up though. |
What this PR does / why we need it
Add resources and SLIs metrics support.
Which issue this PR fixes
Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)