cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

How do I upload pre-built extension dashboards automatically?

Uploading pre-built extension dashboards automatically: when and how do I do it?

Contents


 

What is the use case for automatically uploading dashboard extensions? 

AppDynamics extensions support automatically uploading a pre-built dashboard with every extension. This feature will help customers use an extension to extract all the listed metrics and provide an overview of how the product is doing in terms of certain key metrics. These dashboards can all be updated, and more data can be added to increase the visibility of the metrics the extension provides.

Back to Contents


 

How do I configure the extension with the necessary Controller information?

In order to upload a dashboard to the Controller, you need to provide some information about the Controller that will help the extension log in and upload the dashboard to the Controller.

 

Each new extension is going to be equipped with two dashboard files: one for the Standalone Machine Agent model and one for the Server and Infrastructure Monitoring (SIM) model. While configuring the extension, you will need to configure the following sections: controllerInfo and customDashboard.

 

 Configuring the "controllerInfo" section

This section requires you to fill out the information about the Controller, which in turn is used to make sure that the extension can establish a connection to the Controller and upload the dashboard.

The extension pulls the information in the following order from the following resources:

  1. controller-info.xml
  2. System Properties
  3. Config.yml

 

Update the following section in the config.yml:

controllerInfo:
    controllerHost: ""
    controllerPort: ""
    account: ""
    username: ""
    password: ""
    encryptedPassword: ""
    encryptionKey: ""
    controllerSslEnabled: ""
    enableOrchestration: ""
    uniqueHostId: ""
    accountAccessKey: ""
    machinePath: ""
    simEnabled: ""
    applicationName: ""
    tierName: ""
    nodeName: ""

 

As you start your agent, a number of the fields will be auto-populated. But a few fields will need to be  manually populated. These are: 

   username: ""
   password: ""

 

These fields are required for the Machine Agent to be able to log in and upload the dashboard. Once all this information is provided, populated, and validated, the extension will upload the dashboard to the Controller.

 

After filling it out, this section should look like this: 

dashboardkb1.png

 

 

Configuring the "customDashboard" section

Similar to ControllerInfo, another section called customDashboard needs to be updated in order to make sure that a dashboard can be uploaded to the Controller from the extension.

customDashboard:
   enabled: true
   dashboardName: "Custom Dashboard"
   pathToSIMDashboard: "monitors/<ExtensionName>/simDashboard.json"
   pathToNormalDashboard: "monitors/<ExtensionName>/maDashboard.json"
   periodicDashboardCheckInSeconds: 300

dashboardKB2.png

 

  1. If enabled is false, the dashboard will not upload.

  2. If dashboardName is not present, the extension Monitor Name will be used as the dashboard name.

  3. The two fields that you should verify are the pathToSIMDashboard and pathToNormalDashboard. Both of these fields need to point to two files that are provided with the extension. If there are any changes made to these files, you must make sure that the changes are saved to these files, and in the case they are replaced with new files, their path should be updated in the config.yml.

  4. As the extension sits in the Machine Agent, the path after the base directory of the Machine Agent is needed.

  5. Make sure you have the correct file separator: 
    • (\) for Windows OS
    • (/) for Linux-based OS

  6. Dashboards cannot be overwritten on the Controller. Therefore, if a dashboard is already present on the Controller, you will not be able to upload another dashboard with the same name.

  7. If you make any changes to the dashboard file to suit your needs, you should save the dashboard.json file and delete the current dashboard on the Controller.

  8. By default, the extension will check to see whether a dashboard is present on the Controller every 5 minutes (300 seconds). If it is not present, it will attempt to upload it.

    You have the option to increase or decrease this limit using the
    periodicDashboardCheckInSeconds parameter.

Back to Contents


 

What post-configuration steps and considerations are there?

After filling in both these sections and configuring the rest of the extension to its specific needs, you can start the Machine Agent to gather metrics, and check to confirm that the dashboard has been uploaded and is being populated with the correct data.

 

What if I need to make changes to the dashboard file?

Every extension that comes with a dashboard has preconfigured metrics set to show in the dashboard. If any changes are made to the dashboard file, you will need to delete the existing dashboard present on the Controller so that the extension can upload a new copy of the dashboard with those changes.

How do I compare differences in versions of the dashboard file?

If you would like to compare the differences after making changes to the dashboard file, bear in mind that dashboard file names on the Controller must be unique. So, you should:

 

  1. Make sure your intended new dashboard name isn't already present on the Controller
  2. Change name of the dashboard in  config.yml under the customDashboard section

Once the extension hits the periodic dashboard check limit, it will again check if the dashboard with the new name is present. If not, it will upload the new dashboard which you may then use for comparison.

How do I add metrics to the dashboard file?

Each extension has specific metrics you can choose to display on the dashboard. If you would like to see other metrics, you can add them to the same dashboard (on the Controller) manually.

 

If any changes are made to the metric names/aliases in the config.yml, those changes need to be replicated in the dashboard.json files since they are preconfigured to look for metrics with the default metric names/aliases that are provided with a new copy of the extension.

 

If changes to the metric names/aliases in the config.yml are not replicated, there is a good chance that the dashboard widgets associated with the corresponding metrics may not work. dashboardkb3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Back to Contents

 

 

 

Version history
Last update:
‎10-19-2021 02:52 PM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos