PDFs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Appd tocbox

On this page:

Table of Contents
maxLevel2
minLevel2

Related pages:

AppDynamics automatically detects HTTP backends, and names them by URL, including by their host, port, and path. If the default configuration results in names that are not meaningful for your application (such as EC2 host names, file paths, and ports in the name) you can change the default discovery rule, as described here.

About HTTP Backend Naming

To ensure that the HTTP backends detected in your application have meaningful names, your custom configuration will need to take into account the specific format in use in your environment. The format can vary, including within a single environment. For example, a backend hostname prefixed with ec2storage may not be meaningful, while one that uses salesforce.com may be. 

To account for different formats, you should create a custom rule rather than changing the automatic discovery rule. This lets you apply different rules for different URL formats. For example:

  • For format "ec2storage/servicename", you would use the URL
  • For format "salesforce.com", use the host name
  • For the other backends, you may use a query string

In some cases, your HTTP backend discovery configuration might consist of a combination of the default rule and custom rules. The following section walks you through a specific example. 

Using the URL Path in a Detection Rule

...

  1. Edit the Automatic Backend Discovery rule for HTTP for your agent type. See Backend Detection Rules for details on accessing this screen. 
  2. First select and disable the use of Host and Port.
  3. Then select and enable the property you want to use to uniquely identify the backend. In this case, select URL and check Use URL in the Backend Name.
  4. For the field How will URL be used in the Backend name?, select Use a segment of it.
  5. From the segment options drop-down list, select Use the first N Segments.

    The important URL segment is for the "create" service, so your configuration is the same as in the previous screen shot.

  6. Enter "/" slash for the Split Delimeter.
    Use a similar technique to strip out some segment of the URL, such as a user name as in the following URLs:

    No Format
    [http://host:34/create/username1]
    [http://host:34/create/username2]
  7. Once you change the configuration, delete all HTTP backends. When the agent rediscovers the backends with the new configuration, the flow map shows only the service backends.

Handling Various URL Formats

Consider a set of HTTP backends that have different formats, for example, some are prefixed with ec2storage, some are salesforce.com or localhost and so on. In this case, you should create a custom rule rather than changing the automatic discovery rule.

This is because you need different rules for the different URL formats as follows:

  • For format "ec2storage/servicename", you need to use the URL
  • For format "salesforce.com", use the host name
  • For the other backends, you may use a query string

In some cases, your HTTP backend discovery configuration might consist of a combination of the default rule and custom rules.