Component Settings
Component settings include log association, Profiler, and full sampling settings.
- Log in to the management console.
- Click on the left and choose Application > Application Performance Management.
- In the navigation pane, choose Application Monitoring > Metrics.
- In the tree on the left, click next to the target environment. The instance monitoring page is displayed.
- Click the Component Settings tab. Currently, you can set log association.
Figure 1 Component settings
- Click Clone to Other Component.
- In the displayed dialog box, select one or more components and click Clone to Other Component. The log association settings are then successfully copied to the selected components.
Associating Traces with Logs
Trace IDs can be associated with logs in Log Tank Service (LTS). Then you can find out the logs based on the associated trace IDs for fast troubleshooting.
- If you enable the function of recording trace IDs to service logs, trace IDs will be automatically generated in the logs. If this function is disabled, the log association settings will not take effect.
- The Log4j, Log4j2, and Logback log components are supported for associating service logs.
- Only the Java type is supported.
- Under log association settings, enter related information.
Table 1 Parameters for log association settings Parameter
Description
Project
Select a project from the drop-down list.
Log Group
A log group is a group of log streams which share the same log retention settings. Up to 100 log groups can be created for a single account. For how to create a log group, see Creating a Log Group.
Log Stream
A log stream is the basic unit for reading and writing logs. You can put different types of logs into different streams to ease management. For how to create a log stream, see Creating a Log Stream.
- Click Save.
Figure 2 Saving log association settings
- In the displayed dialog box, click Confirm.
- Click Clone to Other Component.
- On the displayed page, select one or more components and click Save and Clone to Other Component. The current settings will then be copied to the components you have selected.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot