newrelic / nri-perfmon

Windows Perfmon / WMI On-Host Integration for New Relic Infrastructure
Other
14 stars 18 forks source link

"Exception occurred in polling. Not found" errors #20

Closed ybookstaber closed 4 years ago

ybookstaber commented 4 years ago

I am getting errors logged saying "Exception occurred in polling. Not found." It is happening repeatedly for the same two queries out of many in my config. When I run the same exact query with Get-CimInstance data is returned, so it would seem the query and class are fine.

sschwartzman commented 4 years ago

In order to proceed in debugging, please post the following:

ybookstaber commented 4 years ago

Config file -

{
    "counterlist": [
        {
            "query": "select SystemUpTime from Win32_PerfFormattedData_PerfOS_System",
            "eventname": "PerfOS_System",
            "counters": [
              {
                "counter": "SystemUpTime",
                "attrname": "host.uptime"
              }
            ]
        },
        {
            "query": "select PagesPersec from Win32_PerfFormattedData_PerfOS_Memory",
            "eventname": "PerfOS_Memory",
            "counters": [
              {
                "counter": "PagesPersec",
                "attrname": "host.memoryPagesPerSecond"
              }
            ]
        },
        {
            "query": "select DatabaseCopyRoleActive, DatabaseMounted from Win32_PerfFormattedData_MSExchangeActiveManager_MSExchangeActiveManager where Name like 'mdb%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "DatabaseCopyRoleActive",
                "attrname": "exchange.mailbox.activemanager.DatabaseCopyRoleActive"
              },
              {
                "counter": "DatabaseMounted",
                "attrname": "exchange.mailbox.activemanager.DatabaseMounted"
              }
            ]
        },
        {
            "query": "select AverageLDAPLatency, AverageRequestTime, AverageRPCLatency, CurrentRequests, RequestsPersec from Win32_PerfFormattedData_MSExchangeActiveSync_MSExchangeActiveSync",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "AverageLDAPLatency",
                "attrname": "exchange.clientaccess.activesync.AverageLDAPLatency"
              },
              {
                "counter": "AverageRequestTime",
                "attrname": "exchange.clientaccess.activesync.AverageRequestTime"
              },
              {
                "counter": "AverageRPCLatency",
                "attrname": "exchange.clientaccess.activesync.AverageRPCLatency"
              },
              {
                "counter": "CurrentRequests",
                "attrname": "exchange.clientaccess.activesync.CurrentRequests"
              },
              {
                "counter": "RequestsPersec",
                "attrname": "exchange.clientaccess.activesync.RequestsPersec"
              }
            ]
        },
        {
            "query": "select ClientProcessingTime, ClientProcessingTimePersec, ServerProcessingTime, ServerProcessingTimePersec, TheTotalNumberoftimedoutRequests from Win32_PerfFormattedData_MSExchangeADPerformance_MSExchangeADPerformance",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ClientProcessingTime",
                "attrname": "exchange.core.adperformance.ClientProcessingTime"
              },
              {
                "counter": "ClientProcessingTimePersec",
                "attrname": "exchange.core.adperformance.ClientProcessingTimePersec"
              },
              {
                "counter": "ServerProcessingTime",
                "attrname": "exchange.core.adperformance.ServerProcessingTime"
              },
              {
                "counter": "ServerProcessingTimePersec",
                "attrname": "exchange.core.adperformance.ServerProcessingTimePersec"
              },
              {
                "counter": "TheTotalNumberoftimedoutRequests",
                "attrname": "exchange.core.adperformance.TheTotalNumberoftimedoutRequests"
              }
            ]
        },
        {
            "query": "select LDAPDisconnectsperMinute, LDAPFatalErrorsperMinute, LDAPReadTime, LDAPSearchTime from Win32_PerfFormattedData_MSExchangeADAccess_MSExchangeADAccessLocalSiteDomainControllers",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "LDAPDisconnectsperMinute",
                "attrname": "exchange.core.adaccess.LDAPDisconnectsperMinute"
              },
              {
                "counter": "LDAPFatalErrorsperMinute",
                "attrname": "exchange.core.adaccess.LDAPFatalErrorsperMinute"
              },
              {
                "counter": "LDAPReadTime",
                "attrname": "exchange.core.adaccess.LDAPReadTime"
              },
              {
                "counter": "ServerProcessingTimePersec",
                "attrname": "exchange.core.adaccess.LDAPSearchTime"
              }
            ]
        },
        {
            "query": "select MessagesBlocked, MessagesBlockedPercentage, MessagesContainingMalware, MessagesContainingMalwarePercentage, MessagesScannedperSecond, ScanTimeperMB90thPercentile, ScanTimeperMB99thPercentile, ScanTimeperMessage90thPercentile, ScanTimeperMessage99thPercentile from Win32_PerfFormattedData_MSExchangeAntiMalwareAgent_MSExchangeAntiMalwareAgent",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "MessagesBlocked",
                "attrname": "exchange.transport.antimalware.MessagesBlocked"
              },
              {
                "counter": "MessagesBlockedPercentage",
                "attrname": "exchange.transport.antimalware.MessagesBlockedPercentage"
              },
              {
                "counter": "MessagesContainingMalware",
                "attrname": "exchange.transport.antimalware.MessagesContainingMalware"
              },
              {
                "counter": "MessagesContainingMalwarePercentage",
                "attrname": "exchange.transport.antimalware.MessagesContainingMalwarePercentage"
              },
              {
                "counter": "MessagesScannedperSecond",
                "attrname": "exchange.transport.antimalware.MessagesScannedperSecond"
              },
              {
                "counter": "ScanTimeperMB90thPercentile",
                "attrname": "exchange.transport.antimalware.ScanTimeperMB90thPercentile"
              },
              {
                "counter": "ScanTimeperMB99thPercentile",
                "attrname": "exchange.transport.antimalware.ScanTimeperMB99thPercentile"
              },
              {
                "counter": "ScanTimeperMessage90thPercentile",
                "attrname": "exchange.transport.antimalware.ScanTimeperMessage90thPercentile"
              },
              {
                "counter": "ScanTimeperMessage99thPercentile",
                "attrname": "exchange.transport.antimalware.ScanTimeperMessage99thPercentile"
              }
            ]
        },
        {
            "query": "select IODatabaseReadsAttachedAverageLatency, IODatabaseReadsAttachedPersec, IODatabaseReadsRecoveryAverageLatency, IODatabaseWritesAttachedAverageLatency, IODatabaseWritesAttachedPersec, IODatabaseWritesRecoveryAverageLatency, IOLogWritesAverageLatency, IOLogWritesPersec from Win32_PerfFormattedData_ESE_MSExchangeDatabaseInstances where Name like 'Information Store - MDB%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "IODatabaseReadsAttachedAverageLatency",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseReadsAttachedAverageLatency"
              },
              {
                "counter": "IODatabaseReadsAttachedPersec",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseReadsAttachedPersec"
              },
              {
                "counter": "IODatabaseReadsRecoveryAverageLatency",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseReadsRecoveryAverageLatency"
              },
              {
                "counter": "IODatabaseWritesAttachedAverageLatency",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseWritesAttachedAverageLatency"
              },
              {
                "counter": "IODatabaseWritesAttachedPersec",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseWritesAttachedPersec"
              },
              {
                "counter": "IODatabaseWritesRecoveryAverageLatency",
                "attrname": "exchange.mailbox.dbinstances.IODatabaseWritesRecoveryAverageLatency"
              },
              {
                "counter": "IOLogWritesAverageLatency",
                "attrname": "exchange.mailbox.dbinstances.IOLogWritesAverageLatency"
              },
              {
                "counter": "IOLogWritesPersec",
                "attrname": "exchange.mailbox.dbinstances.IOLogWritesPersec"
              }
            ]
        },
        {
            "query": "select Percentile50, Percentile80, Percentile90, Percentile95, Percentile99 from Win32_PerfFormattedData_MSExchangeDeliveryEndToEndLatency_MSExchangeDeliveryEndToEndLatency where Name like 'total - normal'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "Percentile50",
                "attrname": "exchange.transport.deliverye2elatency.Percentile50"
              },
              {
                "counter": "Percentile80",
                "attrname": "exchange.transport.deliverye2elatency.Percentile80"
              },
              {
                "counter": "Percentile90",
                "attrname": "exchange.transport.deliverye2elatency.Percentile90"
              },
              {
                "counter": "Percentile95",
                "attrname": "exchange.transport.deliverye2elatency.Percentile95"
              },
              {
                "counter": "Percentile99",
                "attrname": "exchange.transport.deliverye2elatency.Percentile99"
              }
            ]
        },
        {
            "query": "select AverageAuthenticationLatency, BytesOutPerSec, MailboxServerProxyFailureRate, MailboxServerLocatorAverageLatency, ProxyRequestsPerSec, RequestsPerSec from Win32_PerfFormattedData_MSExchangeHttpProxy_MSExchangeHttpProxy",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "AverageAuthenticationLatency",
                "attrname": "exchange.clientaccess.httpproxy.AverageAuthenticationLatency"
              },
              {
                "counter": "BytesInPerSec",
                "attrname": "exchange.clientaccess.httpproxy.BytesInPerSec"
              },
              {
                "counter": "BytesOutPerSec",
                "attrname": "exchange.clientaccess.httpproxy.BytesOutPerSec"
              },
              {
                "counter": "MailboxServerProxyFailureRate",
                "attrname": "exchange.clientaccess.httpproxy.MailboxServerProxyFailureRate"
              },
              {
                "counter": "MailboxServerLocatorAverageLatency",
                "attrname": "exchange.clientaccess.httpproxy.MailboxServerLocatorAverageLatency"
              },
              {
                "counter": "ProxyRequestsPerSec",
                "attrname": "exchange.clientaccess.httpproxy.ProxyRequestsPerSec"
              },
              {
                "counter": "RequestsPerSec",
                "attrname": "exchange.clientaccess.httpproxy.RequestsPerSec"
              }
            ]
        },
        {
            "query": "select ActiveUserCount, AveragedLatency, ConnectionCount from Win32_PerfFormattedData_MSExchangeMapiHttpEmsmdb_MSExchangeMapiHttpEmsmdb",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ActiveUserCount",
                "attrname": "exchange.clientaccess.mapihttpemsmdb.ActiveUserCount"
              },
              {
                "counter": "AveragedLatency",
                "attrname": "exchange.clientaccess.mapihttpemsmdb.AveragedLatency"
              },
              {
                "counter": "ConnectionCount",
                "attrname": "exchange.clientaccess.mapihttpemsmdb.ConnectionCount"
              }
            ]
        },
        {
            "query": "select CurrentProxyUsers, CurrentUniqueUsers, CurrentUsers, LogonsPersec, ProxyUserRequestsPersec, RequestsPersec from Win32_PerfFormattedData_MSExchangeOWA_MSExchangeOWA",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "CurrentProxyUsers",
                "attrname": "exchange.clientaccess.owa.CurrentProxyUsers"
              },
              {
                "counter": "CurrentUniqueUsers",
                "attrname": "exchange.clientaccess.owa.CurrentUniqueUsers"
              },
              {
                "counter": "CurrentUsers",
                "attrname": "exchange.clientaccess.owa.CurrentUsers"
              },
              {
                "counter": "LogonsPersec",
                "attrname": "exchange.clientaccess.owa.LogonsPersec"
              },
              {
                "counter": "ProxyUserRequestsPersec",
                "attrname": "exchange.clientaccess.owa.ProxyUserRequestsPersec"
              },
              {
                "counter": "RequestsPersec",
                "attrname": "exchange.clientaccess.owa.RequestsPersec"
              }
            ]
        },
        {
            "query": "select ActivationSuspended, ContinuousreplicationblockmodeActive, CopyQueueLength, Disconnected, Failed, FailedSuspended, Initializing, LogCopyingisNotKeepingUp, LogReplayisNotKeepingUp, ReplayQueueLength, Resynchronizing, Seeding, SeedingSource, Suspended, SuspendedandnotSeeding from Win32_PerfFormattedData_MSExchangeReplication_MSExchangeReplication where Name like 'mdb%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ActivationSuspended",
                "attrname": "exchange.mailbox.replication.ActivationSuspended"
              },
              {
                "counter": "ContinuousreplicationblockmodeActive",
                "attrname": "exchange.mailbox.replication.ContinuousreplicationblockmodeActive"
              },
              {
                "counter": "CopyQueueLength",
                "attrname": "exchange.mailbox.replication.CopyQueueLength"
              },
              {
                "counter": "Disconnected",
                "attrname": "exchange.mailbox.replication.Disconnected"
              },
              {
                "counter": "Failed",
                "attrname": "exchange.mailbox.replication.Failed"
              },
              {
                "counter": "FailedSuspended",
                "attrname": "exchange.mailbox.replication.FailedSuspended"
              },
              {
                "counter": "Initializing",
                "attrname": "exchange.mailbox.replication.Initializing"
              },
              {
                "counter": "LogCopyingisNotKeepingUp",
                "attrname": "exchange.mailbox.replication.LogCopyingisNotKeepingUp"
              },
              {
                "counter": "LogReplayisNotKeepingUp",
                "attrname": "exchange.mailbox.replication.LogReplayisNotKeepingUp"
              },
              {
                "counter": "ReplayQueueLength",
                "attrname": "exchange.mailbox.replication.ReplayQueueLength"
              },
              {
                "counter": "Resynchronizing",
                "attrname": "exchange.mailbox.replication.Resynchronizing"
              },
              {
                "counter": "Seeding",
                "attrname": "exchange.mailbox.replication.Seeding"
              },
              {
                "counter": "SeedingSource",
                "attrname": "exchange.mailbox.replication.SeedingSource"
              },
              {
                "counter": "Suspended",
                "attrname": "exchange.mailbox.replication.Suspended"
              },
              {
                "counter": "SuspendedandnotSeeding",
                "attrname": "exchange.mailbox.replication.SuspendedandnotSeeding"
              }
            ]
        },
        {
            "query": "select ActiveUserCount, ConnectionCount, RPCAveragedLatency, RPCOperationsPersec, RPCRequests, UserCount from Win32_PerfFormattedData_MSExchangeRpcClientAccess_MSExchangeRpcClientAccess",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ActiveUserCount",
                "attrname": "exchange.clientaccess.rpc.ActiveUserCount"
              },
              {
                "counter": "ConnectionCount",
                "attrname": "exchange.clientaccess.rpc.ConnectionCount"
              },
              {
                "counter": "RPCAveragedLatency",
                "attrname": "exchange.clientaccess.rpc.RPCAveragedLatency"
              },
              {
                "counter": "RPCOperationsPersec",
                "attrname": "exchange.clientaccess.rpc.RPCOperationsPersec"
              },
              {
                "counter": "RPCRequests",
                "attrname": "exchange.clientaccess.rpc.RPCRequests"
              },
              {
                "counter": "UserCount",
                "attrname": "exchange.clientaccess.rpc.UserCount"
              }
            ]
        },
        {
            "query": "select IndexingStatus from Win32_PerfFormattedData_MSExchangeSearchIndexes_MSExchangeSearchIndexes where Name like 'mdb%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "IndexingStatus",
                "attrname": "exchange.mailbox.searchindexes.IndexingStatus"
              }
            ]
        },
        {
            "query": "select NSPIConnectionsCurrent, NSPIConnectionsPersec, NSPIRPCRequests, NSPIRPCRequestsAverageLatency, NSPIRPCRequestsPersec from Win32_PerfFormattedData_MSExchangeAB_MSExchangeAB",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "NSPIConnectionsCurrent",
                "attrname": "exchange.clientaccess.ab.NSPIConnectionsCurrent"
              },
              {
                "counter": "NSPIConnectionsPersec",
                "attrname": "exchange.clientaccess.ab.NSPIConnectionsPersec"
              },
              {
                "counter": "NSPIRPCRequests",
                "attrname": "exchange.clientaccess.ab.NSPIRPCRequests"
              },
              {
                "counter": "NSPIRPCRequestsAverageLatency",
                "attrname": "exchange.clientaccess.ab.NSPIRPCRequestsAverageLatency"
              },
              {
                "counter": "NSPIRPCRequestsPersec",
                "attrname": "exchange.clientaccess.ab.NSPIRPCRequestsPersec"
              }
            ]
        },
        {
            "query": "select ErrorResponses, ErrorResponsesPersec, RequestsPersec, TotalRequests from Win32_PerfFormattedData_MSExchangeAutodiscover_MSExchangeAutodiscover",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ErrorResponses",
                "attrname": "exchange.clientaccess.autodiscover.ErrorResponses"
              },
              {
                "counter": "ErrorResponsesPersec",
                "attrname": "exchange.clientaccess.autodiscover.ErrorResponsesPersec"
              },
              {
                "counter": "RequestsPersec",
                "attrname": "exchange.clientaccess.autodiscover.RequestsPersec"
              },
              {
                "counter": "TotalRequests",
                "attrname": "exchange.clientaccess.autodiscover.TotalRequests"
              }
            ]
        },
        {
            "query": "select PercentActivity, PercentAvailability, TotalConnections from Win32_PerfFormattedData_MSExchangeFrontEndTransportSmtpAvailability_MSExchangeFrontEndTransportSmtpAvailability",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "PercentActivity",
                "attrname": "exchange.transport.frontendavailability.PercentActivity"
              },
              {
                "counter": "PercentAvailability",
                "attrname": "exchange.transport.frontendavailability.PercentAvailability"
              },
              {
                "counter": "TotalConnections",
                "attrname": "exchange.transport.frontendavailability.TotalConnections"
              }
            ]
        },
        {
            "query": "select AveragebytesPerconnection, AveragebytesPerinboundmessage, AverageinboundmessagesPerconnection, AveragerecipientsPerinboundmessage, BytesReceivedPersec, ConnectionsCreatedPersec, ConnectionsCurrent, ConnectionsTotal from Win32_PerfFormattedData_MSExchangeFrontEndTransportSmtpReceive_MSExchangeFrontEndTransportSmtpReceive",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "AveragebytesPerconnection",
                "attrname": "exchange.transport.frontend.AveragebytesPerconnection"
              },
              {
                "counter": "AveragebytesPerinboundmessage",
                "attrname": "exchange.transport.frontend.AveragebytesPerinboundmessage"
              },
              {
                "counter": "AverageinboundmessagesPerconnection",
                "attrname": "exchange.transport.frontend.AverageinboundmessagesPerconnection"
              },
              {
                "counter": "AveragerecipientsPerinboundmessage",
                "attrname": "exchange.transport.frontend.AveragerecipientsPerinboundmessage"
              },
              {
                "counter": "BytesReceivedPersec",
                "attrname": "exchange.transport.frontend.BytesReceivedPersec"
              },
              {
                "counter": "ConnectionsCreatedPersec",
                "attrname": "exchange.transport.frontend.ConnectionsCreatedPersec"
              },
              {
                "counter": "ConnectionsCurrent",
                "attrname": "exchange.transport.frontend.ConnectionsCurrent"
              },
              {
                "counter": "ConnectionsTotal",
                "attrname": "exchange.transport.frontend.ConnectionsTotal"
              }
            ]
        },
        {
            "query": "select CurrentConnections, RequestRate from Win32_PerfFormattedData_MSExchangeImap4_MSExchangeImap4 where Name like 'cas'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "CurrentConnections",
                "attrname": "exchange.clientaccess.imap.CurrentConnections"
              },
              {
                "counter": "RequestRate",
                "attrname": "exchange.clientaccess.imap.RequestRate"
              }
            ]
        },
        {
            "query": "select BlockModeReplicationOverflows, LogGenerationRateBytesPersec from Win32_PerfFormattedData_MSExchangeISHAActiveDatabase_MSExchangeISHAActiveDatabase where Name like 'mdb%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "BlockModeReplicationOverflows",
                "attrname": "exchange.mailbox.is.BlockModeReplicationOverflows"
              },
              {
                "counter": "LogGenerationRateBytesPersec",
                "attrname": "exchange.mailbox.is.LogGenerationRateBytesPersec"
              }
            ]
        },
        {
            "query": "select Activemailboxes, AverageSearchExecutionTime, DatabaseState, MessagescreatedPersec, MessagesdeletedPersec, MessagesDeliveredPersec, MessagesopenedPersec, MessagesSubmittedPersec, MessagesupdatedPersec, QuarantinedMailboxCount, RPCAverageLatency, RPCOperationsPersec, RPCRequests from Win32_PerfFormattedData_MSExchangeISStore_MSExchangeISStore where Name like 'mdb%'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "Activemailboxes",
                "attrname": "exchange.mailbox.is.Activemailboxes"
              },
              {
                "counter": "AverageSearchExecutionTime",
                "attrname": "exchange.mailbox.is.AverageSearchExecutionTime"
              },
              {
                "counter": "DatabaseState",
                "attrname": "exchange.mailbox.is.DatabaseState"
              },
              {
                "counter": "MessagescreatedPersec",
                "attrname": "exchange.mailbox.is.MessagescreatedPersec"
              },
              {
                "counter": "MessagesdeletedPersec",
                "attrname": "exchange.mailbox.is.MessagesdeletedPersec"
              },
              {
                "counter": "MessagesDeliveredPersec",
                "attrname": "exchange.mailbox.is.MessagesDeliveredPersec"
              },
              {
                "counter": "MessagesopenedPersec",
                "attrname": "exchange.mailbox.is.MessagesopenedPersec"
              },
              {
                "counter": "MessagesSubmittedPersec",
                "attrname": "exchange.mailbox.is.MessagesSubmittedPersec"
              },
              {
                "counter": "MessagesupdatedPersec",
                "attrname": "exchange.mailbox.is.MessagesupdatedPersec"
              },
              {
                "counter": "QuarantinedMailboxCount",
                "attrname": "exchange.mailbox.is.QuarantinedMailboxCount"
              },
              {
                "counter": "RPCAverageLatency",
                "attrname": "exchange.mailbox.is.RPCAverageLatency"
              },
              {
                "counter": "RPCOperationsPersec",
                "attrname": "exchange.mailbox.is.RPCOperationsPersec"
              },
              {
                "counter": "RPCRequests",
                "attrname": "exchange.mailbox.is.RPCRequests"
              }
            ]
        },
        {
            "query": "select AlertablefailureDSNswithinthelasthour, DelayedDSNswithinthelasthour, FailureDSNswithinthelasthour from Win32_PerfFormattedData_MSExchangeTransportDSN_MSExchangeTransportDSN where Name != '_total'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "AlertablefailureDSNswithinthelasthour",
                "attrname": "exchange.transport.dsn.AlertablefailureDSNswithinthelasthour"
              },
              {
                "counter": "DelayedDSNswithinthelasthour",
                "attrname": "exchange.transport.dsn.DelayedDSNswithinthelasthour"
              },
              {
                "counter": "FailureDSNswithinthelasthour",
                "attrname": "exchange.transport.dsn.FailureDSNswithinthelasthour"
              }
            ]
        },
        {
            "query": "select Percentile50, Percentile80, Percentile90, Percentile95, Percentile99 from Win32_PerfFormattedData_MSExchangeTransportEndToEndLatency_MSExchangeTransportEndToEndLatency where Name = 'total - normal'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "Percentile50",
                "attrname": "exchange.transport.transporte2elatency.Percentile50"
              },
              {
                "counter": "Percentile80",
                "attrname": "exchange.transport.transporte2elatency.Percentile80"
              },
              {
                "counter": "Percentile90",
                "attrname": "exchange.transport.transporte2elatency.Percentile90"
              },
              {
                "counter": "Percentile95",
                "attrname": "exchange.transport.transporte2elatency.Percentile95"
              },
              {
                "counter": "Percentile99",
                "attrname": "exchange.transport.transporte2elatency.Percentile99"
              }
            ]
        },
        {
            "query": "select ActiveMailboxDeliveryQueueLength, DelayQueueLength, ExternalLargestDeliveryQueueLength, ExternalRetryRemoteDeliveryQueueLength, InternalLargestDeliveryQueueLength, InternalRetryRemoteDeliveryQueueLength, MessagesDelayedPerSecond, MessagesDelayedTotal, MessagesQueuedForDelivery, PoisonQueueLength, RetryMailboxDeliveryQueueLength, SubmissionQueueLength, UnreachableQueueLength from Win32_PerfFormattedData_MSExchangeTransportQueues_MSExchangeTransportQueues where Name = '_total'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "ActiveMailboxDeliveryQueueLength",
                "attrname": "exchange.transport.queues.ActiveMailboxDeliveryQueueLength"
              },
              {
                "counter": "DelayQueueLength",
                "attrname": "exchange.transport.queues.DelayQueueLength"
              },
              {
                "counter": "ExternalLargestDeliveryQueueLength",
                "attrname": "exchange.transport.queues.ExternalLargestDeliveryQueueLength"
              },
              {
                "counter": "ExternalRetryRemoteDeliveryQueueLength",
                "attrname": "exchange.transport.queues.ExternalRetryRemoteDeliveryQueueLength"
              },
              {
                "counter": "InternalLargestDeliveryQueueLength",
                "attrname": "exchange.transport.queues.InternalLargestDeliveryQueueLength"
              },
              {
                "counter": "InternalRetryRemoteDeliveryQueueLength",
                "attrname": "exchange.transport.queues.InternalRetryRemoteDeliveryQueueLength"
              },
              {
                "counter": "MessagesDelayedPerSecond",
                "attrname": "exchange.transport.queues.MessagesDelayedPerSecond"
              },
              {
                "counter": "MessagesDelayedTotal",
                "attrname": "exchange.transport.queues.MessagesDelayedTotal"
              },
              {
                "counter": "MessagesQueuedForDelivery",
                "attrname": "exchange.transport.queues.MessagesQueuedForDelivery"
              },
              {
                "counter": "PoisonQueueLength",
                "attrname": "exchange.transport.queues.PoisonQueueLength"
              },
              {
                "counter": "RetryMailboxDeliveryQueueLength",
                "attrname": "exchange.transport.queues.RetryMailboxDeliveryQueueLength"
              },
              {
                "counter": "SubmissionQueueLength",
                "attrname": "exchange.transport.queues.SubmissionQueueLength"
              },
              {
                "counter": "UnreachableQueueLength",
                "attrname": "exchange.transport.queues.UnreachableQueueLength"
              }
            ]
        },
        {
            "query": "select MessagesresubmittedfromSafetyNet, MessagesresubmittedfromSafetyNetinthelast15minutes, MessagesresubmittedfromShadowSafetyNet, MessagesresubmittedfromShadowSafetyNetinthelast15minutes, Totalnumberofresubmitrequests from Win32_PerfFormattedData_MSExchangeTransportSafetyNet_MSExchangeTransportSafetyNet",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "MessagesresubmittedfromSafetyNet",
                "attrname": "exchange.transport.safetynet.MessagesresubmittedfromSafetyNet"
              },
              {
                "counter": "MessagesresubmittedfromSafetyNetinthelast15minutes",
                "attrname": "exchange.transport.safetynet.MessagesresubmittedfromSafetyNetinthelast15minutes"
              },
              {
                "counter": "MessagesresubmittedfromShadowSafetyNet",
                "attrname": "exchange.transport.safetynet.MessagesresubmittedfromShadowSafetyNet"
              },
              {
                "counter": "MessagesresubmittedfromShadowSafetyNetinthelast15minutes",
                "attrname": "exchange.transport.safetynet.MessagesresubmittedfromShadowSafetyNetinthelast15minutes"
              },
              {
                "counter": "Totalnumberofresubmitrequests",
                "attrname": "exchange.transport.safetynet.Totalnumberofresubmitrequests"
              }
            ]
        },
        {
            "query": "select BytesReceivedPersec, BytesSentPersec, ConnectionAttemptsPersec, CurrentConnections, OtherRequestMethodsPersec from Win32_PerfFormattedData_W3SVC_WebService where Name != '_total'",
            "eventname": "MSExchange",
            "counters": [
              {
                "counter": "BytesReceivedPersec",
                "attrname": "exchange.clientaccess.iis.BytesReceivedPersec"
              },
              {
                "counter": "BytesSentPersec",
                "attrname": "exchange.clientaccess.iis.BytesSentPersec"
              },
              {
                "counter": "ConnectionAttemptsPersec",
                "attrname": "exchange.clientaccess.iis.ConnectionAttemptsPersec"
              },
              {
                "counter": "CurrentConnections",
                "attrname": "exchange.clientaccess.iis.CurrentConnections"
              },
              {
                "counter": "OtherRequestMethodsPersec",
                "attrname": "exchange.clientaccess.iis.OtherRequestMethodsPersec"
              }
            ]
        }
    ]
}

Query -

Get-CimInstance -Query "select AverageAuthenticationLatency, BytesOutPerSec, MailboxServerProxyFailureRate, MailboxServerLocatorAverageLatency, ProxyRequestsPerSec, RequestsPerSec from Win32_PerfFormattedData_MSExchangeHttpProxy_MSExchangeHttpProxy"

Verbose logs - perfmon.log