How to analyse Discovery Sensor runtime using ECC Queue records and ExcelIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Description Sometimes it is necessary to analyse a long running discovery schedule to work out where all the time goes. Or it may be useful to know which sensor jobs are particularly long running and risk blocking the instance's scheduler workers. This is a simple low-tech way of analysing Discovery sensor processing time and backlog. This is based on the assumption that for ecc_queue inputs: Created - The time that the MID Server had finished running the probe and returned the input containing the result data to the instance ECC QueueProcessed - The time when the Discovery Sensor job started running for that input. If there is a scheduler worker backlog in the instance, this could be some time after Created.Updated - The time the sensor processing had finished. This could be the same second as Processing, or some minutes or even hours later. Procedure Open the ECC Queue table. Discovery - ECC QueueEnsure the following columns are in your list view, and Personalize List View to add them if necessary CreatedUpdatedProcessedName (probe name or command)and perhaps others such as Source (Target IP), State (Error/Processed), Topic (Probe type), Agent (MID) Filter the table down to a manageable number of records. Start by showing only Queue=Input records.Perhaps filter for a Created time around the time you are interested inor where Agent Correlator=<sys_id of your discovery_status record for a particular schedule run>or Topic=SNMP or some other kind of Discovery probe Export the list as Excel format. Open in Excel and add 2 new columns - 'wait time' and 'run time' - and set the Cell Format as "Time". This will show the value in hours:minutes:seconds e.g. 00:00:02 is 2 seconds.Add a formula to subtract pairs of dates in the first data row of those new columns: Wait time: =<Processed value> - <Created value>Run time: = <Updated value> - <Processed value> Copy those formulae down all rows.You could then analyse the data in various ways: Sort the sheet on the Run Time column to identify the longest running sensorsSort on Wait Time to see the longest time a sensor job had to wait before starting when there was a free Scheduler Worker in which to execute it.Apply Conditional Formatting colours for a 'heat map'. You should have ended up with something like this, which is from a normal discovery of a few servers on a healthy instance: Applicable Versions Any Additional Information I used Microsoft Excel for this example, but other spreadsheet applications could be used, as the spreadsheet features mentioned are common to all. There may be some weird values seen in the calculations, perhaps if there were errors processing the sensor, which in itself tells you something. This works well for Discovery and Service Mapping. For other features using MID Servers via the ECC Queue, not all sensors update the ecc_queue input records and timestamps in the same way, and some may not even have sensons.