newrelic/nri-perfmon

Too many event viewer entries

ahill-itim opened this issue · 1 comments

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

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:
- .\nri-perfmon\nri-perfmon.exe
- -g
- true

prefix: integration/nri-perfmon
interval: 15