Function Compute seamlessly integrates with Application Real-Time Monitoring Service
(ARMS). You can use the application performance management (APM) feature of ARMS by
configuring environment variables. ARMS provides non-intrusive advanced monitoring
without code changes for applications in the Java 8 runtime environment. This way,
you can view various metrics of instances, such as the total number of requests, the
response time, and errors. This topic describes how to connect a function to ARMS.
Background information
Function Compute seamlessly integrates with ARMS. You can use ARMS to monitor and
trace functions to obtain relevant information, such as metrics of instances, tracing
data, Java Virtual Machine (JVM) metrics, and code-level profiling information.
Information |
Description |
Metrics of instances |
You can view various host monitoring metrics for instances, such as metrics that are
related to the CPU, the memory, and requests.
|
Tracing data |
The ARMS agent automatically obtains the topological relationships between a function
and its upstream and downstream components and related metrics. You can view the information
about the components such as databases and message queues in the ARMS console.
|
JVM metrics |
The ARMS agent automatically obtains JVM applications. You can view the monitoring
information of the JVM applications in the ARMS console, such as the number of garbage
collections (GCs), heap information, and thread stack information.
|
Code-level profiling information |
You can view code-level profiling information of function execution, such as the time
consumed by each method and errors.
|
Procedure
- Log on to the Function Compute console.
- In the top navigation bar, select a region.
Notice If you need to view monitoring information after your function is connected to ARMS,
make sure that ARMS resides in the same region as your function.
- In the left-side navigation pane, click Service/Function. In the Services pane, click the required service.
- On the Functions tab, find the required function and click Modify Configurations in the Actions column.
- In the Environment Variables section of the Modify Configurations page, click Key Value, configure the key-value pair of the environment variable, and then click Submit.
- Key: Set the key to FC_EXTENSIONS_ARMS_LICENSE_KEY.
- Value: Set the value to the license key. For more information about how to obtain the license
key, see Install the ARMS agent for Java applications in Function Compute.
Note After the environment variable is configured, the function is added to application
monitoring of ARMS for high-performance management. You are charged for the services
provided by ARMS.
For more information, see Billing.
References
If the runtime environment of the function that you connect to ARMS is not Java 8,
you can refer to related ARMS topics to modify related information. For more information,
see Overview.
Result
After you connect the function to ARMS, you can view the monitoring information of
the function in the ARMS console.
Log on to the
ARMS console. Choose . Then, click the application name that you require to view detailed monitoring information.
For more information, see
Application overview.
Note The application name is in the format of FC:{serviceName}/{functionName}, such as FC:Service/Function.