-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[receiver/prometheusreceiver] How to add Kubestate mertrics and metric server as prometheus targets in prometheus receiver #33207
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
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The k8sobjectsreceiver produces logs only, so it shouldn't overlap with metrics server or KSM. The k8sclusterreceiver is very similar to KSM. |
Hi @dashpole, Thank you very much for the response. I have one more doubt about the Prometheus configuration. Please find below my Prometheus scrape configuration, where I want to get metrics of both Kube State Metrics and Metric Server(this is protected with authentication)
I can see the metrics for kube-state-metrics, but for the metric server, I am facing the below error
I think it is a configuration issue; I am unsure if this is the right place to ask. If you know the issue, could you please help me fetch the metrics of the metric server? Thanks |
The metrics-server doesn't expose metrics in prometheus format. It supports the k8s metrics API for things like autoscaling and kubectl top: https://github.com/kubernetes-sigs/metrics-server. This warning from the metrics-server repo is relevant:
|
Thank you very much, @dashpole; I was off, actually, to respond. I appreciate your quick, prompt response. I'll be sure to take note of your suggestions. We can close this. Thank you once again. |
Component(s)
receiver/prometheus
Is your feature request related to a problem? Please describe.
I am unsure about this, and I do not think it is a problem; however, if it is trivial, please close this issue with a comment on how to achieve it using the K8s cluster.
So, I want to fetch metrics from Kube State metrics and the metric server but I am running into various issues if I keep the Prometheus configuration in the Prometheus receiver of Otel.
And I have one more query about k8sclusterreceiver, k8sobjectsreceiver and k8sobjectsreceiver
If I install metric-server and kube state metrics, will they overlap on metrics and work they do
I am using a k3s cluster (single node).
Thank you
Describe the solution you'd like
Please give some examples of how it can be easily used.
I would love to know how to quickly set up existing and famous metrics in a K8s cluster, such as a Kube state metric and metric server.
Describe alternatives you've considered
No response
Additional context
I have a single-node K3s cluster in one of the VMs, and I am trying to fetch all the metrics with Prometheus using Otel native and leveraging the OpenTelemetry Prometheus receiver. Thank yu.
The text was updated successfully, but these errors were encountered: