newrelic / nri-perfmon

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

Too many event viewer entries #57

Open ahill-itim opened 7 months ago

ahill-itim commented 7 months ago

Hi,

I'm running the latest version of nri-perfmon, but I am seeing a very large amount of informational events in Windows event viewer, please see attached screenshot and below example:

Running Query: Select Name, * from Win32_PerfFormattedData_NETDataProviderforSqlServer_NETDatProviderForSqlServer

There seems to be a few entries a second, which fills up the event logs and causes them to roll over far too often - in a lot of cases in less then 12 hours.

Why is nri-perfmon writing every query to the event logs? Is there a way this can be stopped as this seems to be unrequired information, or information that could be written to a separate log file rather than filling up the Windows logs.

Any help you can provide would be much appreciated.

Thank you, Andrew nri-perfmonEventViewer

tdr-kmclaughlin commented 4 months ago

To suppress the info Windows event log, update your nri-perfmon-definition.yml file and add -g | --ignoreInfoLogs [true|false]: Ignores logs of log type Info (default: false) as documented here https://github.com/newrelic/nri-perfmon?tab=readme-ov-file#command-line-arguments

name: com.newrelic.perfmon description: Perfmon On-Host Integration protocol_version: 1 os: windows commands: metrics: command: