Hello all, long time lurker, I read daily. Thanks to this subreddit I’ve grown so much in my career. Thank you all!
Now.. to the point. I have a requirement to report disk space usage percentage to AWS CloudWatch. (We have varying number of disks per server)
My solution works very well and is transportable to any environment we have. I run this from a central place, it takes about ~35 seconds to complete when I run this against 10 servers. I use PoshRSJob with it also.
Is there a way to speed this guy up? Make it more efficient? Is my coding style wonky? What can I do better?
I’ve never asked to have my code reviewed before and I am not a developer, I am looking for constructive criticism and tips on how I can improve.
Thank you!
See: (sorry for pastebin, it’s 75 lines)
submitted by /u/howdoipowershell
[link] [comments]
The post Input for my disk usage report appeared first on How to Code .NET.