Agent
The agent is accessible as a Docker image through the public Docker Hub.
https://hub.docker.com/repository/docker/datasentinel/datasentinel-agent/general
Howto
Because the agent registers the server name and listening port to the platform, you need to expose them externally and pass the values when running a new agent.
This allows the platform to communicate with the agent.
// download, install and run the agent
export DATASENTINEL_AGENT_HOST=172.16.250.199
export DATASENTINEL_AGENT_PORT=8383
docker run -d -p $DATASENTINEL_AGENT_PORT:$DATASENTINEL_AGENT_PORT -e DATASENTINEL_AGENT_HOST=$DATASENTINEL_AGENT_HOST -e DATASENTINEL_AGENT_PORT=$DATASENTINEL_AGENT_PORT datasentinel/datasentinel-agent// Example agent CLI command
/agent/datasentinel/datasentinel status agentSubsequently, you can use the API to configure the agent. For detailed information, please refer to the Agent API documentation. Configuration files are stored within the volume /agent/config
// Check agent status
curl -k https://${DATASENTINEL_AGENT_HOST}:${DATASENTINEL_AGENT_PORT}/api/agent/statusUpdate token with valid license
Set Datasentinel upload platform
Test the communication between the agent and the platform
Add a PostgreSQL connection
Check connection
Dockerfile
https://github.com/datasentinel/datasentinel_toolkit/blob/master/docker/agent/Dockerfile
Docker-compose
https://github.com/datasentinel/datasentinel_toolkit/blob/master/docker/agent/docker-compose.yml
Last updated