-
Notifications
You must be signed in to change notification settings - Fork 91
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
Differentiate logs coming from different pods #11
Comments
I've looked into it a bit. I'm concerned about how easy it is to exhaust all discernibly different colors. After going down a "truecolor" rabbit hole, I put it on the back burner for a while. Really interesting ideas for reducing the number of colors used. They may make it feasible, but will take a fair amount of code changes. How does kubetail and stern handle this? Thanks for the feedback, I'll start thinking this again. |
kubetail does it like this, by just getting the next color. Stern uses https://github.com/fatih/color, here |
yeah, so stern cycles through six color schemes and kubetail uses ~254 of them and then the behavior seems undefined. I'm not really satisfied with either approach. Maybe ~250 colors is enough. Maybe it partitions it by namespace and container (they each use different pools of colors). Whatever happens I think that when pods die they need to relinquish the color that they're using, and something reasonable should happen when there's no more colors available. An additional problem is that edit: by using background and foreground we can stretch the pallet usage out quite a bit too. |
Interested in a color option as well. FWIW I would never come close to tailing 250 pods. |
Thanks for your feedback @jmreicha. Maybe a I'll look at this again when I have some time and/or need a change of pace. |
|
It would be nice to differentiate the logs coming from different pods.
Show all pods with a different color?
Or maybe, depending on params, something like this:
If logs are shown from different pods, it could be nice to show different colors.
$ kail
---> show all pods in the same namespace with the same colors? Else, different colors?
$ kail --ns kube-system
---> show pods bellonging to the same deployment/daemonset/rs/rc with the same color, and different colors otherwise?
$ kail --ns kube-system --ds <name>
$ kail --ns kube-system --deploy <name>
$ kail --ns kube-system --rs <name>
$ kail --ns kube-system --rc <name>
$ kail --ns kube-system --ing <name>
---> show all pods with a different color?
Here is what I miss:
kubetail --help
:stern --help
:The text was updated successfully, but these errors were encountered: