Gathering alerts from VMware API

509 views
Skip to first unread message

mani...@gmail.com

unread,
Feb 9, 2017, 6:11:44 AM2/9/17
to Prometheus Users
I was hoping there would be an export for the VMware API, but I've drawn a blank. My primary purpose is alerts, so I thought I could send an SNMP trap instead, but apparently Promethus doesn't support that either.

I came across brandonweeks' vmware_exporter, but I am not a Go programmer and I'm wary of going down a path that I don't really understand, that could also suck up too much of my time.

I can export any kind of data from the VMware API using PowerCLI and I also have a Python script that extracts performance statistics using pyvmomi, this could be configured to grab any kind of data too. But once extracted, how would I get this data into Prometheus?

Is there a workable solution for this, or is Prometheus the wrong product for monitoring a VMware environment?


Brian Brazil

unread,
Feb 9, 2017, 6:18:12 AM2/9/17
to mani...@gmail.com, Prometheus Users
On 9 February 2017 at 11:11, <mani...@gmail.com> wrote:
I was hoping there would be an export for the VMware API, but I've drawn a blank. My primary purpose is alerts, so I thought I could send an SNMP trap instead, but apparently Promethus doesn't support that either.

I came across brandonweeks' vmware_exporter, but I am not a Go programmer and I'm wary of going down a path that I don't really understand, that could also suck up too much of my time.

I can export any kind of data from the VMware API using PowerCLI and I also have a Python script that extracts performance statistics using pyvmomi, this could be configured to grab any kind of data too. But once extracted, how would I get this data into Prometheus?

Once you have the data in Python, it should be relatively easy to get it into Prometheus. See https://www.robustperception.io/writing-a-jenkins-exporter-in-python/

Brian
 

Is there a workable solution for this, or is Prometheus the wrong product for monitoring a VMware environment?


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/cda3ab64-37d7-4312-8eff-8c0336dde4e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

mani...@gmail.com

unread,
Feb 9, 2017, 6:32:56 AM2/9/17
to Prometheus Users, mani...@gmail.com
Thanks Brian, that looks fairly straight forward. Just what I needed :)


On Thursday, 9 February 2017 11:18:12 UTC, Brian Brazil wrote:
On 9 February 2017 at 11:11, <mani...@gmail.com> wrote:
I was hoping there would be an export for the VMware API, but I've drawn a blank. My primary purpose is alerts, so I thought I could send an SNMP trap instead, but apparently Promethus doesn't support that either.

I came across brandonweeks' vmware_exporter, but I am not a Go programmer and I'm wary of going down a path that I don't really understand, that could also suck up too much of my time.

I can export any kind of data from the VMware API using PowerCLI and I also have a Python script that extracts performance statistics using pyvmomi, this could be configured to grab any kind of data too. But once extracted, how would I get this data into Prometheus?

Once you have the data in Python, it should be relatively easy to get it into Prometheus. See https://www.robustperception.io/writing-a-jenkins-exporter-in-python/

Brian
 

Is there a workable solution for this, or is Prometheus the wrong product for monitoring a VMware environment?


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.



--

David Karlsen

unread,
Feb 9, 2017, 9:36:42 AM2/9/17
to mani...@gmail.com, Prometheus Users
Will you let us know if you make something generic and opensource? 

Reply all
Reply to author
Forward
0 new messages