Web モニタリング PSA および API モニタリング PSA の設定
このページでは、Web モニタリング PSA と API モニタリング PSA の設定方法について説明します。
スクリプト内メタデータの設定
スクリプト測定として合成ジョブを実行する場合、スクリプト内メタデータを使用して特定の設定オプションを指定できます。これらの YAML ベースの設定は、コメントブロックの形式でスクリプトの先頭に含める必要があります。
合成スクリプトのカスタムユーザーエージェントの設定
デフォルトのブラウザ固有の user-agent ヘッダーをカスタム user-agent ヘッダーに変更するには、合成スクリプトの先頭に次のスクリプト内メタデータを追加します。
'''yml
requestHeader:
userAgent: "custom user agent"
'''
driver.get('http://127.0.0.1:20000/green.html')
合成トラフィックをブラウザ RUM トラフィックに含める
合成スクリプトの user-agent リクエストヘッダーには、要求がブラウザ RUM ページに含まれないようにするためのタグが付けられます。tagUserAgent を false に設定すると、ブラウザ RUM ページに合成トラフィックを含めることができます。
合成スクリプトの先頭に次のスクリプト内メタデータを入力します。
'''yml
requestHeader:
userAgent: "custom user agent"
tagUserAgent: false
'''
driver.get('http://127.0.0.1:20000/green.html')
Kubernetes Configuration
After you set up the Kubernetes cluster, push the images to the Docker registry, and deploy the Web Monitoring PSA or API Monitoring PSA using sum-psa-heimdall.tgz Helm chart, a values.yaml file is generated. Use the values.yaml file to dynamically configure the values while deploying the Web Monitoring PSA and API Monitoring PSA.
Key-Value Pairs Configuration
You can replace the optional configuration values in the values.yaml file with the values in the table:
| Configuration | Key-Value Pair | Description |
|---|---|---|
| Heimdall replica count | heimdall > replicaCount |
Indicates the Heimdall replica count. |
| Heimdall Resource allocations |
|
Indicates the Heimdall Resource allocation. |
| Measurement Container Resource allocations |
Web Monitoring PSA:
API Monitoring PSA:
|
Indicates the measurement container resource allocations. |
| Logging level | logging > level to ERROR, WARN, INFO, DEBUG, or TRACE |
Indicates the logging level. The default value is DEBUG . |
| Node selectors |
|
Apply Node selectors for Heimdall and measurement containers to schedule these components on specific nodes. |
| Proxy |
Heimdall: heimdall: enabled: false server: "<proxy server address>" Web Monitoring PSA: browserMonitoringAgent: enabled: false server: "<proxy server address>" bypassList: "<specify the domain URLs that you want to bypass separated by semicolon>" API Monitoring PSA: apiMonitoringAgent: enabled: false server: "<proxy server address>" |
Configure the PSA to use a proxy for all requests leaving the cluster. Set the enabled true <scheme>://<hostname>:<port> You can configure the same proxy server for all components or different proxy servers for each component.
注: This configuration is set to the deployment level and applies to all the domains or tests for that particular EUM license.If you have multiple proxy servers, you can use one proxy server for Web monitoring and another for API monitoring. All the tests will go through the configured proxy server irrespective of the domain.
|
Connect Agent to the Synthetic Server
When deploying the Web Monitoring PSA or API Monitoring PSA in the Kubernetes cluster, you must specify the agent registration information in the values.yaml file. Heimdall uses this information to register itself with the Synthetic Server. Once registered, you can view the agent in the Controller and run measurements.
Shepherd URL
To connect the agent to a hosted Synthetic Cloud region, enter one of these shepherd URLs in the values.yaml file:
| Region | Shepherd URL |
|---|---|
| us-west-2 | https://synthetic.api.appdynamics.com |
| eu-central-1 | https://fra-synthetic.eum-appdynamics.com |
| ap-southeast-2 | https://syd-synthetic.eum-appdynamics.com |
| ap-south-1 | https://bom-synthetic.eum-appdynamics.com |
| eu-west-2 | https://lon-synthetic.eum-appdynamics.com |
|
ap-east-1 |
https://hkg-synthetic.eum-appdynamics.com |
| sa-east-1 | https://gru-synthetic.eum-appdynamics.com |
| af-south-1 | https://cpt-synthetic.eum-appdynamics.com |
| ap-southeast-1 | https://singapore-synthetic.eum-appdynamics.com |
To connect the agent to your on-premises Synthetic Server, enter the shepherd URL (http://<on-premises-synthetic-server-host>:10101) in the values.yaml file.
EUM Account and License Key
To connect the agent to the Controller, you need the EUM account and license key.
Follow the given steps to obtain this information:
- Navigate to the SaaS Controller.
- Click
.
-
Scroll down to the User Experience section. Enter Account Name and License Key in the values.yaml file.
Configuration Key Configuration Value shepherd > credentials > eumAccountAccount Nameshepherd > credentials > eumKeyLicense Key
Location Information
To identify the location of the agent, enter the following shepherd > location details in the values.yaml file:
-
name - A user-friendly string for the location.
-
code - A unique alphanumeric string with four to ten characters that identifies the location where the agent is running. You must create this ID based on the location name.
-
latitude, longitude- Navigate to the GPS Coordinates with Google Maps to get the latitude and longitude of your location.