Here is what I am trying to do:
Almost all Microsoft SQL Server templates I have seen, items like the following are defined:
perf_counter[\SQLServer:Memory Manager\Optimizer Memory (KB)]
This is great if you only have the default instance. Almost all SQL Servers I have seen in the wild used named instances, so for example for a Server with instance 'SCRATCH' will have this as the equivalent for the above:
perf_counter[\MSSQL$SCRATCH:Memory Manager\Optimizer Memory (KB)]
So ideally I'd be able to define templates w/ items like this:
perf_counter[\{$DB_INSTANCE}:AccessMethods\Extent Allocated/sec]
I tried this w/ Macros and defining {$DB_INSTANCE} at the host level. Didn't work. I'm not sure if that's me defining it wrong or macros not working for this case. I haven't had much luck searching for a solution via Google or here. Has anybody encountered/handled this?
Almost all Microsoft SQL Server templates I have seen, items like the following are defined:
perf_counter[\SQLServer:Memory Manager\Optimizer Memory (KB)]
This is great if you only have the default instance. Almost all SQL Servers I have seen in the wild used named instances, so for example for a Server with instance 'SCRATCH' will have this as the equivalent for the above:
perf_counter[\MSSQL$SCRATCH:Memory Manager\Optimizer Memory (KB)]
So ideally I'd be able to define templates w/ items like this:
perf_counter[\{$DB_INSTANCE}:AccessMethods\Extent Allocated/sec]
I tried this w/ Macros and defining {$DB_INSTANCE} at the host level. Didn't work. I'm not sure if that's me defining it wrong or macros not working for this case. I haven't had much luck searching for a solution via Google or here. Has anybody encountered/handled this?
. Thanks for great job!
Comment