I've googled this and so far, no luck so turning to all you awesome gurus for help.
I'm trying to figure out if there's a way to get the perfmon counter "Memory: Pages/Sec" using t-sql as I'm trying to add it as a custom metric in our Ignite monitoring tool. I've looked at the sys.dm_os_performance_counters DMV but didn't find it there.
Anyone know of a way doing this? Thanks in advance 🙂
Best Answer
Following @Srutzky's example of just looking at page faults/sec (not pages/sec), you can do this:
It is likely that you can just have Ignite poll for the following metric:
And then set up alerts based on thresholds or deltas. But I still recommend you contact them to find out how to best implement a custom metric based on a column from an arbitrary DMV, which might be different from the perf counters DMV.