I have a task to develop some basic metrics around the systems we support. A couple of these that came up were tag counts and number of windows. We support an enterprise system setup in a hub and spoke architecture, so something that can be aggregated easily would be ideal (wanting to avoid logging into each gateway for some of these metrics, if that makes sense).
I see in the OPC browser that I can get metadata on the devices, including tag counts (ItemCounts), which would explain the number of actual tags being scanned (maybe an interesting KPI), but I’m not seeing anything that easily shows me the total number of OPC tags in the provider(s). On the Gateway Status page, the total tags are displayed there. I guess what I’m not sure is if the total tags on the status page are the sum of all device tags, or if those are all the OPC tags, and if so, is there an easy way to capture that somehow?
As for all OPC tags (which is what I’m after) I can create a script like
but it feels like there might be an easier way. Also, this requires I also include all providers, and I’m not sure how I would do this from a gateway scoped call (I’m not sure what scripting functions exist to find providers dynamically) that would automatically update regardless of number of tag providers.
On the window side of things, I can also see a path for using something like
but this would need to be setup per project, from what I can tell. Anyone have thoughts on best approach?