This documents describes the configuration of .NET agent.
The agent gets its configuration from the file nudge.config
that must be in the same directory as the agent executable.
The file nudge.config
has an xml format with nudge-configuration
as root element.
<nudge-configuration>
<item1> ... </item1>
<item2> ... </item2>
...
</nudge-configuration>`
Mandatory: this identifier is the same as the correspondign app ID inside Nudge controller.
When downloading the agent from the application settings, you get a zip file containing the file nudge-agent.config
inside which this parameter is already filled.
If you use this same file to monitor another application, you should change this parameter with the code of the other corresponding application.
Default value: https://collector.nudge-apm.com
Defines the controller URL.
Default value: localhost:8090
Defines how the agent should listen to Tracer data. At the moment, there is no similar configuration for the Tracer. So this parameter shouldn’t be changed.
Default value: http
Defines how the agent should export raw data. Available values are http
and file
.
Default value: executable location
Defines where data should be stored when handlers value is file
.
Default value : false
Enable or disable the system monitoring.
Proxy server hostname or IP
Proxy server port
Proxy user, leave blank or omit parameter to bypass authentication.
Proxy password
Logging uses log4net library.
Example of configuration:
<log4net>
<appender name="nudge" type="log4net.Appender.FileAppender">
<file value="nudge-agent.log" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%t] %level %d [%logger] - %m%n" />
</layout>
</appender>
<root>
<level value="WARN" />
<appender-ref ref="nudge" />
</root>
</log4net>