Configuring AppDynamics Connector

Configure the AppDynamics Connector by running its SQL scripts and adding application entries.

7 min read Updated SS

Follow the below steps to configure AppDynamics Connector:

  1. The AppD folder contains the following files.

    File

    adapter_dao_sql.sql
    adapter_appdynamics_insert.sql
    adapter.sql
    adapter_appdynamics_dao_data_insert.sql
    
  2. Execute the following scripts.

    adapter_dao_sql.sql
    adapter.sql
    adapter_appdynamics_insert.sql
    
  3. Add a new application entry in the adapter_appdynamics_dao_data_insert.sql file as follows.

    1. Application values:

      insert into appdynamics_application values ('<table row
      identifier>', '<application id>', '<application name>',
      '<organization name>', '<password>', '<username>','<application
      instance identifier>',"<node>","<log agent instance name>",' ',
      <value for API KEY ENABLE>,null,'<client secret key value>');
      

      <node> – If you need to provide all the nodes, put ‘*’ here otherwise provide a specific node identifier.

      <value for API KEY ENABLE> – This can be true or false. If you set the value to true, then provide <client secret key value> in the above insert statement. If you set the value to false, then provide ‘ ‘ for <client secret key value> in the above insert statement.

    2. KPI values

      insert into appdynamics_kpis values (<table row identifier>, "<KPI
      aggregator>","<KPI string>", "<type of aggregation>", "<aggregation
      level>");
      

      <type of aggregation> – This can be average, sum, min, or max

      <aggregation level> – This indicates whether you need to monitor specific metrics at the instance level or application level. Provide “instance” for the instance level, or provide “application” for the application level.

      <KPI aggregator> – This is the actual name of the KPI.

      <KPI string> – This is the name of the category of the KPI.

      For Example: CPU, Memory, etc.

    3. KPI Map values.

      insert into appdynamics_application_kpi_map values (<table row
      identifier>, <application identifier>, <KPI identifier>);
      

      There are multiple KPIs associated with multiple applications. Provide which KPIs to be monitored for which application.

    4. Map the client instances with HEAL component agent instances.

      The creation of instances and component agents is done from the Control Center UI.

      insert into a1_logscan_heal_instance_mapper values ("<client
      instance>","<component agent identifier>","<HEAL component instance
      identifier>");
      
  4. Execute adapter_appdynamics_dao_data_insert.sql script.

  5. The following tables are part of the dataadapter_appdynamics MySQL database.
    1. appdynamics_application_kpi_map table
DB Column Description
ID Row identifier
application_id This is the ID from the appdynamics_application table.
kpi_id This is the ID from the appdynamics_kpis table.
  1. appdynamics_kpis table
DB Column Description
ID Row identifier
kpi_aggregator This is the actual name of the KPI.
kpi_string This is the name of the category of the KPI. Example: CPU, Memory etc.
kpi_type This is the type of the KPI.
aggregation_level This indicates whether you need to monitor specific metric at instance level or application level. Provide “instance” for instance level, or provide “application” for application level.
  1. appdynamics_application table
DB Column Description
ID Row identifier
application_id This is the identifier of the application which AppDynamics system monitors.
application_name This is the name of the application which AppDynamics system monitors.
organization This is the name of the client organization.
password This is the password to access AppDynamics account.
username This is the username to access AppDynamics account.
application_instance Application can have more than one instances running. Specify the application instance which AppDynamics system monitors.
node Node is an instance of JVM. One instance of JVM is one node.
log_agent Log agent instance name.
api_key This is the token which AppDynamics connector generates.
api_key_enable If the value for this field is true, then connector generates the token. If it is false, then user logins to AppDynamics system using username and password and token is not applicable.
api_key_expiry_date Default validity period for the token is 1 day and the maximum validity period is 30 days. Connector automatically generates the new token post expiry of the old token.
client_secret_key Refer following link to generate the client secret key. https://docs.appdynamics.com/21.3/en/extend- appdynamics/appdynamics-apis/api-clients
  1. adapter_chain_config table

    This table contains configurations required for a specific chain. Adapter executes a chain. Adapter can contain multiple chains which execute sequentially.

DB Column Description
ID Row identifier
sleep_interval This is in seconds. This is specific to the chain and not to the component. This is the frequency at which the Adapter checks for data in the Source system. Elasticsearch is the source for a few chains, but not all.
reload_interval_inminutes The frequency at which in-memory data gets refreshed with the Master data of the chain from the DB. This is applicable only when the reload- configuration attribute is set to true. This avoids the adapter restart.
processor_thread_pool_size A combination of these attributes specifies the number of threads executing the chain.
loader_thread_pool_size
test_start_date This needs to be null.
test_end_date This needs to be null.
add_sysout_loader Do not modify.
disable_chain Set this to true if you need to disable the chain. In this case, the Adapter does not execute this chain.
back_pressure_strategy Do not modify.
back_pressure_max_size Do not modify.
delta_inminutes This is in minutes. This is the delta for real time data ingestion. This applies to all the chains. It takes time for real-time data to be available in DB. Query for data in DB after (current time – delta) interval.
extractor_id This is the identifier for the Extractor. worker_chain_mapping table uses this value.
pre_processor The adapter preprocesses data before transforming. Do not change this value. The default value is com.appnomic.heal.etladapter.etl.NullPrepro cessor.
chain_id This is the identifier of the chain. It is a string. For Example: SQL Txns
pull_historic_data The Connector can fetch historical or fresh data from the SQL database. It can be either 0 or 1. 1 indicates the connector fetches old data from the SQL database.
historic_start_date This is the date from which the connector fetches the historical data. The value should be epoch in milliseconds.
historic_end_date This is the date up to which the connector fetches the historical data. The value should be epoch in milliseconds.
historic_interval This is the interval in minutes for which the connector pulls the historical data.
disable_chain_reload This is to enable or disable the chain configuration reload. It can be either 0 or 1.
  1. adapter_chain_worker table

    This table is for extracting, transforming, and loading data. This table indicates the workers that the chain uses.

DB Column Description
id Row identifier
class_path This is the complete path of the class. Do not Modify.
is_initialized This indicates whether a class needs initialization. Do not modify. Can be true or false.
reload_config This indicates if the config needs to reload. Do not modify. Can be true or false.
  1. adapter_chain_repository table

    This is the repository from which the adapter chain gets relevant chains and workers. The worker can be an extractor, transformer, or a loader. One chain has one extractor, one transformer, and one loader.

DB Column Description
id Row identifier
name Name of the repository. Do not modify.
class_path Complete path of class. Do not modify.
user_name Username to connect to MySQL.
password Password to connect to MySQL.
auto_reconnect Do not modify.
cpool_min_size Do not modify.
cpool_max_size Do not modify.
connection_url Specify this as “jdbc:mysql://<SQL Database IP>:<SQL Server port>/”
  1. adapter_extended_config table

    This table contains other configurations required for a specific chain. Currently, it contains only the log directory path.

DB Column Description
id Row identifier.
csv_dir Do not modify.
  1. worker_chain_mapping table

    This table contains the mapping of workers to a chain and the sequence of workers within a chain.

DB Column Description
id Row identifier.
chain_id Row identifier from adapter_chain_config table.
worker_id Row identifier from adapter_chain_worker table.
order Sequence number of the mapping between workers and the chain. Adapter uses this sequence during execution.
  1. worker_parameters table

    This table contains the parameters required to configure a worker. It stores key- value pairs in a row.

DB Column Description
id Row identifier
worker_id Row identifier from adapter_chain_worker table.
name Name of the config field.
value Value of the config field.
  1. a1_logscan_heal_instance_mapper table
DB Column Description
logscan_instance_name Instance from which adapter collects data. Format should be <application name of IIB-message flow name of IIB> for IIB 11 version and <Execution Group of IIB- Message Flow name of IIB> for IIB 10 version.
heal_agent_uid Unique identifier of HEAL agent
heal_instance_name Identifier of the component instance created in HEAL