sylweltan / prometheus-vmware-exporter

Collect metrics ESXi Host
MIT License
6 stars 1 forks source link

Installation Guide for Dummy #18

Open vasqueeg opened 3 months ago

vasqueeg commented 3 months ago

Hello Team,

Good day!

I am completely newbie for a project assigned to me wherein I am looking for a perfect ESXi Exporter that will expose the metrics in our ESXi servers. I wonder if you can share a detailed installation guide for me to use so I can test this exporter.

Looking forward to your timely response.

TIAl

vasqueeg commented 3 months ago

By the way, I am targetting to use this exporter on the following ESXi versions:

sylweltan commented 3 months ago

Don't know which part you need help with.

The basic instruction is in fact already provided. All you need is to download executable file from releases, set ESX_* variables to inform about your ESX details and run it: export ESX_HOST=esx.domain.local export ESX_USERNAME=user export ESX_PASSWORD=password export ESX_LOG=debug prometheus-vmware-exporter &

In the background the program will start collect metrics which should be available at http://:9512/metrics and all you need is to add this endpoint to Prometheus and present results on Grafana.

If you don't understand the concept of Prometheus and Grafana there is a lot of good tutorials around. E.g. https://betterstack.com/community/guides/monitoring/visualize-prometheus-metrics-grafana/ or https://grafana.com/go/explore-prometheus-with-easy-hello-world-projects/ and you should start with them.

vasqueeg commented 3 months ago

Hello @sylweltan - Thank for the response. I've downloaded and installed in one of my ESXi Device. Exported the variables needed. But when I attempted to run, I am getting this...

FATA[2024-05-21T10:53:21Z] listen tcp :9512: invalid argument

Any clues on how to fix this? TIA!

sylweltan commented 3 months ago

Well, you should install it on some Linux/Windows machine not on ESXi device. That machine should have connectivity to ESXi over tcp port 22. Usually such exporters are installed on the VM hosting Prometheus/Grafana.