tencent cloud

All product documents
DocumentationData Security AuditPractical TutorialPractical Tutorial of Container Service
Practical Tutorial of Container Service
Last updated: 2024-10-16 16:43:53
Practical Tutorial of Container Service
Last updated: 2024-10-16 16:43:53

Prerequisites

Assets should be synchronized and audit permissions are enabled for the agent configuration to monitor assets correctly.

Directions

1. Download the agent from the Agent Management Page.
2. Decompress the agent to the directory CapAgent.
3. Place the decompressed agent directory CapAgent in the Dockerfile directory of the business container.
4. In the Dockerfile of the business container, add the following agent startup command. The agent's startup directory supports customization. In this document, it is set to /data/dbagent.
RUN mkdir -p /data/dbagent
COPY ./CapAgent /data/dbageent/CapAgent
COPY ./start_agent.sh /etc/kickStart.d/
RUN chmod +x /etc/kickStart.d/start_agent.sh
5. start_agent.sh is a script for the agent. Pay attention to the agent's startup directory. The content is as follows:
#! /bin/bash
cd /data/dbagent/CapAgent/bin/
nohop ./start.sh 1>/dev/null 2>/dev/null
6. Create an image.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon