VMware Cloud Community
FarasDewal
Contributor
Contributor

Creating multiple adapter instances with same configurations

Hi,

We are currently using the 5.7.1 SDK for our custom vCOps adapter development.

While creating adapter instances I am able to create multiple instances with same configurations (even the same adapter instance name).

Please let me know if this behavior might cause any future issues in data collection.

The resources imported by these two identical instances seem to get merged and show up as one on the environment overview page.

Your suggestions are welcome.

Thanks & Regards,

Faras Mohan Dewal

0 Kudos
1 Reply
mark_j
Virtuoso
Virtuoso

Two different questions (kind of).

1- The adapter instances with the same name. Why would you do that to someone? OK - on the backend the adapter instance get different identifying IDs, with the 'pretty' user description being 'the same', however you're going to confuse people when they look at the data sources for resources. Don't do it.

2 - A resource is imported in to vC Ops, and is created with unique identifying field.. think of multiple primary keys. The Unique Primary Key field are the resource NAME, and the identifierKey and identifierValue field. If this data is the same, vC Ops will think you're talking about the same resource and will MERGE the data together under the same resource. We do this with Generic SQL adapters, if you need to pull data from multiple sources, perhaps using different SQL  queries, and you need to merge all of this data down to a single resource. Play with this some more and you'll see the possibilities!

If you find this or any other answer useful please mark the answer as correct or helpful.
0 Kudos