argoproj-labs / argocd-extension-metrics

An Argo CD extension to enable visualization of metrics in Argo CD UI.
Apache License 2.0
114 stars 27 forks source link

quickstart instructions exclude configmap.yaml, also need installation instructions #8

Open bkcsfi opened 1 year ago

bkcsfi commented 1 year ago

these instructions don't work

kubectl apply -n argocd \
    -f https://raw.githubusercontent.com/argoproj-labs/argocd-extension-metrics/main/manifests/install.yaml

because manifests/configmap.yaml does not get installed.

As a workaround, the configmap can be installed as a distinct resource:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
resources:
  - https://raw.githubusercontent.com/argoproj-labs/argocd-extension-metrics/main/manifests/configmap.yaml
  - https://raw.githubusercontent.com/argoproj-labs/argocd-extension-metrics/main/manifests/install.yaml

I have installed argocd extensions, metrics server and metrics extension. I also restarted argocd server, but the metrics tab does not appear in argocd.

Are there additional installation steps needed that haven't been documented?

bkanuka commented 1 year ago

From the config, it looks like argocd-extension-metrics is looking for a prometheus server at: prometheus-service.monitoring.svc.cluster.local. Makes me belive that this extension needs prometheus installed. I also haven't gotten it to work yet however.

nikhilgorantla commented 1 year ago

Changing metrics end point also doesn't work all i see on pod logs

[GIN-debug] GET / --> github.com/sarabala1979/argo-observability/server.(*O11yServer).Run.func1 (3 handlers) │ │ [GIN-debug] GET /api/extension/o11y/applications/:application/groupkinds/:groupkind/rows/:row/graphs/:graph --> github.com/sarabala1979/argo-observability/server.(*O11yServer).queryMetrics-fm (3 handlers) │ │ [GIN-debug] GET /api/extension/o11y/applications/:application/groupkinds/:groupkind/dashboards --> github.com/sarabala1979/argo-observability/server.(*O11yServer).dashboardConfig-fm (3 handlers)

otherguy commented 1 year ago

I'm running this on GKE with managed prometheus, but I don't know how to configure the extension to make use of that. The tab isn't showing up regardless.

zek commented 1 year ago

I managed to show tab however charts are empty

image

What I did so far

  1. Use raw extension.tar https://github.com/argoproj-labs/argocd-extension-metrics/raw/main/manifests/extension.tar
  2. update container image into sarabala1979/argocd-metrics-server:latest in install.yaml
  3. strip prefix /extensions/metrics

in case you are using traefik

  1. add traefik.ingress.kubernetes.io/service.serversscheme: https into service definition
  2. add --serverstransport.insecureskipverify=true

I see that this extension is not ready yet and still in development.

I'm newbie to kubernetes so I don't know what to do next to export metrics to prometheus.

sarabala1979 commented 1 year ago

@zek Great. can you share your configmap and metrics server log?

autokilla47 commented 1 year ago

I also haven't gotten it to work yet however.

I have an external prometues and I set its address, but without results.

SnoozeFreddo commented 1 year ago

Same here

sarabala1979 commented 1 year ago

@SnoozeFreddo Have you configured prometheus URL on configmap? https://github.com/argoproj-labs/argocd-extension-metrics/blob/68f2063a538627f5a49905d66c00b8c711a2f5e1/manifests/configmap.yaml#L299

SnoozeFreddo commented 1 year ago

No i didn't. Thank you.

otherguy commented 1 year ago

I also haven't gotten it to work yet however.

I have an external prometues and I set its address, but without results.

Same here. Using GKE managed Prometheus.