argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.48k stars 5.32k forks source link

Log aggregation of replicas #5714

Open yujunz opened 3 years ago

yujunz commented 3 years ago

Summary

Aggregate logs of all pods of parent resources like ReplicaSet, Deployment, DaemonSet, Statefulset and etc.

Motivation

Pod logs in Argo CD UI are very helpful for troubleshooting but not good enough for multiple replicas.

Proposal

Support logs under the parent resource view, similar to what is available to Pod, but aggregating all logs from child pods.

jessesuen commented 3 years ago

This is coming in v2.0. See a preview of the feature here:

https://cd.apps.argoproj.io/applications/argo-cd?node=apps%2FDeployment%2Fargocd%2Fargocd-repo-server%2F0&tab=logs

image

The colored dots indicates output from a different replica.

There is a hard limit of total replicas it can stream from. I believe this might be 10.

yujunz commented 3 years ago

Superb.

Is it already in the master branch? @jessesuen

yujunz commented 3 years ago

It seems available for Deployment from the latest build.

Can we add it to Service as well? I often use the Network view for complex application but Deployment is not visible in it.