Anchor | ||||
---|---|---|---|---|
|
Info |
---|
Agents are the tools data collectors of Insights. These are python snippets which connects to Devops tools and collect data using REST protocol. Each agents needs to be registered in system (Postgres DB, agent_configuration table) to start collecting data. Agent management screen in Admin tab helps manage agent registration, update, start, stop, Uninstall. When Insights product is installed, one of the important steps in to installed Agent Daemon. This is daemon process running on server where you want to run your tools agents. Daemon agents helps Insights in agent registration, update, uninstall. Daemon agent needs connectivity to RabbitMQ. It is very critical that you make sure agent Daemon is running (generally server 2, but can be anywhere you decide) before you start registering agent from Insights UI (Admin tab). We recommend to take latest artifacts for PlatformService.war , PlatformEngine.jar and UI app. NOTE - Current out-of-box agent daemon and agents support Windows and , RHEL 7.x, CentOS 7.5.x and Ubuntu 16.04 OS. For other OS flavors, one need to follow specific instructions given below in Other OS section. Agent Daemon is available in doc root at - http://platform.cogdevops.com/insights_install/release/latest/agentdaemon.zip Follow below installation instructions for Daemon agent configuration. |
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
On Agent server
For example - D:\\Agents\\AgentDaemon and D:\\Agents\\PlatformAgents
Create AgentDaemon as service - RHEL 7.x/Ubuntu/CentOS OS
Windows OS
Once agent daemon start running successfully, it should have creates a queue in RabbitMQ with name 'INSIGHTS.AGENTS.PACKAGE' On Application/Platform server (Tomcat)
server-config.json should be updated as follows -
Offline agent registration
For Example typical structure assuming offlineAgentPath as "D://download//agents" -- "D:\\download\\agents\v1.0\git\com\cognizant..." "D:\\download\\agents\v1.0\jenkins\com\cognizant..." Deploy new PlatformService WAR Run below SQL query to register Daemon Agent using PostgreSQL pgAdmin tool (Administration tool or SQL developer for PostgreSQL) Update highlighted value '{"key":"value"}' in below query with daemon config.json.
|
Expand | ||||
---|---|---|---|---|
| ||||
1. Stop all existing running agents 2. Make sure agents are in stop states. 3. Very Important - Take backup of existing agent code including tracking.json. This tracking.json is used during re-registration purpose. 4. Let Insights Engine consume all queues data. Verify all the queues have 0 pending data 5. Shut down Insights Engine. 6. Undeploy PlatformService WAR 7. Take back up of AGENT_CONFIGURATION table in PostgreSQL 8. DELETE all records from AGENT_CONFIGURATION table in PostgreSQL (using PostgreSQL pgAdmin tool (Administration tool or SQL developer for PostgreSQL)) after taking backup 9. Deploy new PlatformService WAR and verify it has created below new columns in AGENT_CONFIGURATION table -
10. Run SQL DDL script using PostgreSQL pgAdmin tool (Administration tool or SQL developer for PostgreSQL) –
11. Execute below SQL query in PostgreSQL to register Daemon Agent (using PostgreSQL pgAdmin tool (Administration tool or SQL developer for PostgreSQL)) - Update highlighted value '{"key":"value"}' in below query with Daemon agent config.json.
12. Follow Agent 2.0 installation steps 13. Register all required agents using Agent management tab in Admin screen. Follow Agent Management
14. Run latest updated Insights Engine Jar 15. Validate all agents are running successfully and collecting data as usual |
Info |
---|
Other OS Running an application as a OS service differs based on Unix flavor. For Example, Linux RHEL it runs from /etc/init.d folder, in Ubunut it runs from /etc/systemd/system. Hence to run agent daemon and agents on OS other than Windows and RHEL 7.x Insights supported OS version, follow below steps.
If you have successfully run agents on OS other than Windows or RHEL 7.xcurrently supported OS version, we will encourage you to check-in those files in Github repository to help others. |
Top Section