Skip to content

Configuration

The Java agent can be configured with either system properties or agent parameters. These settings can be used to set the following options:

Name Description Required Example
api.key The authentication token used to authorize the agent true -Dnerdvision.api.key=4ioj19393h980hiyu3jly
name The name of the agent, can be useful to filter to specific agents (optional) -Dnerdvision.name=agent007
tags The tags for the agent, can be useful to filter to specific agents (optional) -Dnerdvision.tags=app=shop,version=2.1.0

System Properties

To set configuration via system properties prefix the configuration name with -Dnerdvision. for example

-javaagent:/full/path/to/nerdvision.jar -Dnerdvision.api.key=4ioj19393h980hiyu3jly -Dnerdvision.name=agent007 -Dnerdvision.tags=app=shop,version=2.1.0

Agent parameters

To set configuration via agent parameters attach them to the end of the agent definition. For example if you want to set the name via agent parameters then the agent definition should look like this (note they do not have the nerdvision. prefix):

-javaagent:/full/path/to/nerdvision.jar=api.key=4ioj19393h980hiyu3jly,name=agent007,tags=app=shop;version=2.1.0

Tags in agent string

Tags set in the agent string should be separated with ; not , as seen in the example above.