-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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-state-metrics publishes on 8080 by default, but datadog-agent looks on 8081 #1523
Comments
Sorry for spamming you today. :-) |
Hi @benbc thanks for the report, it seems that the KSM project recently added the 8081 port in the exposed port list and this messing up with the autodiscovery template, because in case of multiple exposed port, we'll take the highest port number. |
@mfpierre Thank you. I'm sure I can use the annotation approach. The diff for your fix will help with that. I was unsure, reading your docs, which pod the annotation should go on ( What is the easiest way for me to trace your linked fix in https://github.com/DataDog/integrations-core to a published version of the |
@benbc just merged the PR should go out with the next agent release |
Here is the proper way to fix this issue with annotations for Datadog agent version 5:
Datadog agent version 6 users should probably only need to replace Edit: note the use of |
I'm using the DataDog agent (v6.1.0) and
kube-state-metrics
(v1.2.0) on GKE (v1.8.9). I'm using the Kubernetes manifests provided by both projects with minimal modifications.I see this error in my logs:
It looks like the check is trying to scrape the
/metrics
URL from port 8081. Howeverkube-state-metrics
exposes that URL on port 8080 by default. (The IP address of the container is correct.)I've spent a while reading your docs and spelunking in a couple of your codebases and I can't work out how that default gets set or how to override it.
So I suppose I have a couple of questions:
Thanks
-Ben
The text was updated successfully, but these errors were encountered: