ECSTeam / cloudfoundry-top-plugin

Cloud Foundry CF cli plugin - show top stats
Apache License 2.0
73 stars 21 forks source link

ARM Architecture Support #8

Closed leebickmtu closed 7 years ago

leebickmtu commented 7 years ago

Please support ARMv7 architecture with a binary build.

leebickmtu commented 7 years ago

Sorry, meant ARMv6, supports more systems that way.

kkellner commented 7 years ago

ARMv6 on what OS? Linux? Is this for Raspberry Pi?

leebickmtu commented 7 years ago

Yes, it is Raspbian Linux on a Pi Zero that I am trying to run it on.

kkellner commented 7 years ago

I'm not seeing any other cf plugins supporting ARM. Do you know of any? https://plugins.cloudfoundry.org/

If fact I'm not seeing an official cf client for ARM: https://github.com/cloudfoundry/cli/releases

leebickmtu commented 7 years ago

Not sure about an official cf-cli build, but "go get code.cloudfoundry.org/cli" will successfully build it on ARM Linux. I have it running right now.

kkellner commented 7 years ago

I'm curious, what is your use case for running cf (and cf top) on a Pi?

leebickmtu commented 7 years ago

I want to leave it running on a wall mounted display in our office building for quick stats about our CF deployed apps.

kkellner commented 7 years ago

OK, that was going to be my guess as we were thinking about doing the same thing. Let me look into it.

leebickmtu commented 7 years ago

Thanks

kkellner commented 7 years ago

I created a arm6 binary. I do not have a pi handy to test. Can you test and let me know if it works? https://github.com/ECSTeam/cloudfoundry-top-plugin/releases/tag/v0.8.5

leebickmtu commented 7 years ago

It is working, thank you for getting this so quick.

kkellner commented 7 years ago

Great to hear it's working. If you can report back after a few days and let me know if the pi is able to keep up and your events-per-second value on your monitored environment. I would be worried that it will not be able to keep up. On busy environments (e.g., > 30,000 events per second) I've seen it exceed 1GigE network bandwidth which is why I often recommend running cf top on a VM close to the monitored environment on a 10GigE network.

leebickmtu commented 7 years ago

It's a fairly low traffic environment. 1440 events over the 14 minutes I've had it running now.