I'm hoping someone takes pity on me and can point me in the correct direction here. I've already put in several hours in SQL Server Management Studio looking at table and view designs, but I'm lost on leads.
I'm trying to report on the historical values of a statistic as defined in a Windows Script component monitor. I'm able to find the historical data for other component monitors in the APM_StatisticsUsage view:
SELECT TOP 1000 [ComponentID]
,[DateTime]
,[ApplicationAvailability]
,[ComponentAvailability]
,[ComponentStatus]
,[ResponseTime]
,[MinStatisticData]
,[AvgStatisticData]
,[MaxStatisticData]
,[RecordCount]
FROM [SolarWindsOrion].[dbo].[APM_StatisticsUsage] WHERE ComponentID=5815
for instance returns a great deal of useful information regarding availability and statistics for one of our POP3 user experience monitors. However, when I try to use the ComponentID for one of our Windows Script component monitors, this query would return no rows.
The APM_AlertsAndReportsData view is fantastic for finding the current information. It works equally effectively for both our Windows Script component monitors (which I cannot find the history for through APM_StatisticsUsage or other tables and views I've looked at) and others (which are tracked through APM_StatisticsUsage), but as far as I've been able to parse the make-up of the view, I remain mired in only the most recent polled statistics.
I've read another thread with similar concerns, and aLTeReGo posted the suggestion to use the APM_PortEvidence or APM_ProcessEvidence views - but I'm having trouble correlating the columns in either of those tables with the Node, Application, and Component names, and I don't understand which columns would pertain to the Statistic from the Windows Script monitor.
Are the statistics from script monitors tracked somewhere special? The MIN/MAX Average Statistic Data chart on the Application Component Details page attached to the Node must be getting it's data from somewhere - anyone else able to find it?