Define and View Tags for a Server

You can specify server tags as a set of key-value strings in the Agent config directory. Each Agent can support up to 50 tags by default.

Note:

Follow these suggested best practices to define server tags:

If an Agent is deployed in Amazon Web Services, the Agent can auto-detect and import tags defined in AWS. The Controller also auto-assigns a set of default tags to each server.

The primary use case for server tags is to specify information that is not already specified in AWS and auto-assigned tags. Before you specify server tags in the Agent config directory, you should review the current set of tags. Access the Server Dashboard and view the Tags pane at the bottom of the page:

server tags in Appdynamics

Be careful not to define duplicate tags in the YML file.

Configure the following option in <machine_agent_home>/extensions/ServerMonitoring/conf/ServerMonitoring.yml:

Setting Description

tag

A list of user-defined tags for the individual server. You can use these tags to query, filter, aggregate, and compare related servers.
Each tag is specified by a key-value pair. You can define tag names up to 127 Unicode characters and tag values up to 255 Unicode characters. Define each key on a separate line. All key-value strings should be within single quotes. If a key has multiple values, delineate the list with commas:
<key>: [ <value> ]
tags:
'Location': ['NYC', 'Data Center', 'Server Room 7']
'Environment': ['preProduction']