Open jessebot opened 1 month ago
tried updating to use servermonitors to see if that helps: https://github.com/small-hack/argocd-apps/commit/fe8434172a1cca99d10e57ea3c8e42ac2bb50ad8
It doesn't make a difference. The weird thing is there is no metrics pod. Should there be? The only thing listed in the metrics.yaml in the helm chart is a service: https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/templates/argocd-repo-server/metrics.yaml
And the service seems ok? here it is:
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app.kubernetes.io/component":"repo-server","app.kubernetes.io/instance":"argo-cd","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/name":"argocd-repo-server-metrics","app.kubernetes.io/part-of":"argocd","app.kubernetes.io/version":"v2.11.2","argocd.argoproj.io/instance":"argocd-helm","helm.sh/chart":"argo-cd-7.1.1"},"name":"argo-cd-repo-server-metrics","namespace":"argocd"},"spec":{"ports":[{"name":"http-metrics","port":8084,"protocol":"TCP","targetPort":"metrics"}],"selector":{"app.kubernetes.io/instance":"argo-cd","app.kubernetes.io/name":"argocd-repo-server"},"type":"ClusterIP"}}
creationTimestamp: "2024-04-12T15:14:40Z"
labels:
app.kubernetes.io/component: repo-server
app.kubernetes.io/instance: argo-cd
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: argocd-repo-server-metrics
app.kubernetes.io/part-of: argocd
app.kubernetes.io/version: v2.11.2
argocd.argoproj.io/instance: argocd-helm
helm.sh/chart: argo-cd-7.1.1
name: argo-cd-repo-server-metrics
namespace: argocd
resourceVersion: "28300640"
uid: baa19b08-ea6f-48f3-a41e-29e1456e5479
spec:
clusterIP: 10.43.93.2
clusterIPs:
- 10.43.93.2
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: http-metrics
port: 8084
protocol: TCP
targetPort: metrics
selector:
app.kubernetes.io/instance: argo-cd
app.kubernetes.io/name: argocd-repo-server
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
I'm kinda stumped, because if you do argocd app list --help
there is no --repo-server-metrics-name
. The environment variable link that we're instructed to check also doesn't have anything for the repo-server-metrics service:
https://argo-cd.readthedocs.io/en/stable/user-guide/environment-variables/
Perhaps this is related to https://github.com/argoproj/argo-cd/issues/10200 ? It was fixed with https://github.com/argoproj/argo-cd/pull/14605/files however that fix doesn't include anything related to metrics.
I asked to be sure that there's not supposed to be a metrics pod here: https://github.com/argoproj/argo-helm/discussions/2738
Disabling all metrics is a work around to get the cli working again, https://github.com/small-hack/argocd-apps/commit/cfca63174ffd05b49f3eb8d76a58e17977d88715
Checklist:
argocd version
.Describe the bug
All
argocd
CLI commands return:To Reproduce
This used to work:
I also tried to logout and back in:
Here's my argo config at
/home/myuser/.config/argocd/config
:Expected behavior
I expected a server version to printed when running
argocd version
.Version
From
argocd version
:From
brew info argocd
:Argo CD is installed via the official helm chart (version
7.1.1
). Here's the json from the dashboard:Here's the Argo CD
ApplicationSet
that manages Argo CD itself: https://github.com/small-hack/argocd-apps/blob/cd1df56d7c994024f677f83b7f1c63db7e85115d/argocd/app_of_apps/argocd_appset.yamlLogs
Not sure which logs would be helpful, but let me know which you'd like me to get? I don't see any errors anywhere. I did turn on debug logging and checked
argo-cd-application-controller-0
, but I don't know if this is normal. The numbers bit is kinda weird...:Additional context
All of the pods look healthy :shrug:
I'm not actually sure when this broke? I haven't used my server in probably a few weeks. Maybe when I upgraded to helm chart version 7.x? You can see the updates here: https://github.com/small-hack/argocd-apps/commits/main/argocd?author=renovate%5Bbot%5D
(Also, thank you for any help you can provide, and the work everyone here in the org and wider community do here :pray: )