-
Notifications
You must be signed in to change notification settings - Fork 367
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
node-agent daemonset not listening on correct metrics port #508
Comments
I can confirm this, it was working before the upgrade to 5.1.0: Velero version: velero version
Client:
Version: v1.12.0
Git commit: 7112c62e493b0f7570f0e7cd2088f8cad968db99
Server:
Version: v1.12.0 Helm history:
Helm chart metrics section: # Settings for Velero's prometheus metrics. Enabled by default.
metrics:
enabled: true
scrapeInterval: 30s
scrapeTimeout: 10s
# ...
nodeAgentPodMonitor:
autodetect: true
enabled: true
annotations: {}
additionalLabels: {} |
Looks like it has been fixed in this vmware-tanzu/velero#6784 PR
|
Yea, looks like the informational message is still incorrect but the port does appear to now be listening to 8085 as expected/documented. Close this issue as vmware-tanzu/velero#6784 has been merged. |
The node-agent server runs two metric endpoinds:
controller-runtime:
node-agent:
|
Current HelmChart version : 5.1.3 https://github.com/vmware-tanzu/velero https://github.com/vmware-tanzu/helm-charts/blob/main/charts/velero/templates/node-agent-daemonset.yaml#L42 https://github.com/vmware-tanzu/helm-charts/blob/main/charts/velero/values.yaml#L219
This means for node-agent-deamonset the prometheus metric endpoint is: :8085/metrics which is unreachable via http. |
What steps did you take and what happened:
Deployed velero with node-agent in standard fashion including podMonitor. Scrape errors started happening because connections to port 8085 were being rejected.
What did you expect to happen:
PodMonitor would work and prometheus would be able to scrape the endpoint
Logs:
Anything else you would like to add:
Looking into the issue I could see that the velero logs contained:
So I switched the daemonset config to listen on port
8080
instead of8085
and everything worked.helm list -n <YOUR NAMESPACE>
):5.1.0
, default image tag.kubectl version
):1.26.8
The text was updated successfully, but these errors were encountered: