• Node.js バージョン 14.x ~ 18.x を使用していることを確認します。
  • インストール後にエージェントを再起動してください。


以下は、Linux に Node.js エージェントをインストールするための Ansible® ロールの例です。

---
- hosts: linux
  tasks:
    - include_role:
        name: appdynamics.agents.node
      vars:
        agent_version: latest # [latest or provide the specific agent version]
        agent_type: node
        agent_action: upgrade # can be upgrade/install/rollback, default upgrade when unspecified
        controller_account_access_key: "123key" # Please add this to your Vault
        controller_host_name: "fieldlab.saas.appdynamics.com" # Your AppDynamics controller
        controller_account_name: "customer1" # Please add this to your Vault
        enable_ssl: "false"
        controller_port: "8090"
YML

次のコマンドを使用して、インストール後にエージェントを再起動してください。

node -r appd-config.js app.js 
CODE


Node.js エージェントの変数

変数説明デフォルト使用可能な値必須
agent_versionインストールする Node.js エージェントのバージョン。latestlatest、[x.x.x.x 形式のエージェントバージョン]なし
node_agent_enableGraphQLアプリケーションで graphql が使用されている場合は、これを使用します。falsetrue、falseなし
node_agent_debug_loggingデバッグロギングを有効にしてアプリケーションを実行します。falsetrue、falseなし
npm_registryアプリケーションをデバッグモードで実行します。https://registry.npmjs.org
×


Ansible® は米国およびその他の国における Red Hat, Inc. の登録商標です。