Beat : vsphere module


(Alain Delbot) #1

Is it possible to retrieve Tag Field like Custom field ?
These "custom" field seems be in end of life at vmware.

Why not retrieve the distributed network port group ?


(ruflin) #2

Could you share a bit more details with links or example docs on the fields you are talking about? I assume you run our current vsphere module and didn't get the fields you needed?


(Alain Delbot) #3

Hi,

In my use case, i want use two type of informations from vcenter :

First : The network name is a distributed port group

Second : We use Tags on virtualmachine.

In the API Explorer :


(ruflin) #4

To recap: You are already using our vsphere module with the metricsets but are missing these fields?

  • For the tags: I tried to search the library we use for tags but couldn't find something inside virtual machines for it: https://github.com/vmware/govmomi Do you have an API link for tags by chance?
  • For the port group: Does this belong to the virtualmachine or host metricset?

(Alain Delbot) #5

I use /apiexplorer/cis

For the port group, it s for virtualmachine


(Alain Delbot) #6

Hi,

Maybe an another information :

https://github.com/vmware/govmomi/issues/957

Alain


(ruflin) #7

That is exactly the link I was looking for. So it seems govmomi does not support it yet but wants to add it? Can you open a feature request in Metricbeat as soon as the library has support for it? This should make the implementation pretty simple.


(Alain Delbot) #8

but now, we can call in rest to know the tags without new version of govmomi.

is it possible ?


(ruflin) #9

We probably could. The challenge is that our implementation is currently based on the library and we get all the data through it. To get tags through rest it would mean getting everything through rest and changing the implementation.

Now that I see there is a REST API I wonder what the advantage of one over the other is and it seems there are even differences. Do you know some more details here?


(Alain Delbot) #10

Hi,

Ok for the reflexion.

I have open a ticket on vmware about library and tags.


(ruflin) #11

Thank you, could you link it here for other people stumbling over this?


(Alain Delbot) #12

Maybe, you can take a look on https://github.com/vmware/govmomi/issues/1139

Alain


(system) #13

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.