Automation

 View Only
  • 1.  PowerCLI with Grafana possible?

    Posted Dec 05, 2021 10:06 PM

    Hello,

    I'm very new to PowerCLI, but I've been asked to obtain 3 reports and wonder if there is an example website to help me?

    1. List all VMs with snapshots older than 2 days, showing VM name, OS, snapshot size, any tags.

    2 VMs assigned with a tag called "Testing" showing VM name, OS, current disk free space.

    3. List all datastores, showing name, size and free space.

    They want this in Grafana which is what we use for everything.  I already have a lot in there for vCenter using Telegraf but not the above as it needs deeper info.

    I'm sure PowerCLI can do the above, but I need to either create these as CSV files somehow or even better would be to send these to SQL and query that, is this even possible?

    Thanks



  • 2.  RE: PowerCLI with Grafana possible?

    Posted Dec 05, 2021 10:20 PM

    Expect a moderator to move this to the PowerCLI area.

     



  • 3.  RE: PowerCLI with Grafana possible?

    Posted Dec 06, 2021 09:33 AM

    ok



  • 4.  RE: PowerCLI with Grafana possible?

    Posted Dec 06, 2021 08:24 AM

    Yes, all possible.

    But are you looking for scripts retrieving that information?
    Or are you looking for a way to upload this data and display it in a Grafana dashboard?

    Asking for multiple scripts (3) in one thread, without even giving the code you already have, seems to be stretching the concept of a thread in a community a bit imho.



  • 5.  RE: PowerCLI with Grafana possible?

    Posted Dec 06, 2021 09:36 AM

    I think I can would out how to write teh PowerCLI and Grafana is already, so it's how I get a PowerCLI into Grafana really.



  • 6.  RE: PowerCLI with Grafana possible?

    Posted Dec 06, 2021 10:56 AM