Skip to content
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

Kubernetes cannot scrape the operator pod (tries port 80, but the operator uses port 8080)? #738

Open
rbtr opened this issue Sep 12, 2024 Discussed in #734 · 0 comments
Assignees
Labels
area/metrics good first issue Good for newcomers help wanted Extra attention is needed scope/S Change is Small type/bug Something isn't working

Comments

@rbtr
Copy link
Collaborator

rbtr commented Sep 12, 2024

Discussed in #734

Originally posted by kastl-ars September 12, 2024
Hi all,

I just installed Retina and kube-prometheus-stack according to the documentation.

But one of the retina-pods targets is unhealthy according to Prometheus. It tries to get the metrics for the operator pod on port 80:

Get "http://10.42.0.16:80/metrics": dial tcp 10.42.0.16:80: connect: connection refused

However, the operator pods seems to listen on port 8080?

[...]
ts=2024-09-12T11:23:41.024Z level=info caller=legacy/deployment.go:251 msg="Starting manager"
2024-09-12T11:23:41.024Z        info    controller-runtime.metrics      Starting metrics server
2024-09-12T11:23:41.024Z        info    controller-runtime.metrics      Serving metrics server  {"bindAddress": ":8080", "secure": false}
2024-09-12T11:23:41.024Z        info    starting server {"name": "health probe", "addr": "[::]:8081"}
[...]

This is the values.yaml I uses for the installation:

image:
  tag: 'v0.0.16' 
operator:
  enabled: true
  tag: 'v0.0.16' 
  enableRetinaEndpoint: true
loglevel: 'info'
enabledPlugin_linux: "[dropreason,packetforward,linuxutil,dns,packetparser]"
enablePodLevel: true
remoteContext: true

Any ideas?

Kind Regards,
Johannes

@rbtr rbtr added type/bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed area/metrics scope/S Change is Small labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics good first issue Good for newcomers help wanted Extra attention is needed scope/S Change is Small type/bug Something isn't working
Projects
Status: Accepted
Development

No branches or pull requests

3 participants