redt-agent
is a lightweight, extensible agent that collects telemetry data, package information, and automatically checks for software upgrades for your application. It communicates with a backend service to report collected data and receive upgrade instructions.
- Collects telemetry data
- Reports package information
- Automatically checks for software upgrades
- Configurable polling intervals and upgrade check periods
These instructions will help you set up and configure the redt-agent
for your application.
- Go 1.16 or later
- Clone the repository:
git clone https://github.com/bluet/redt-agent.git
- Change to the project directory:
cd redt-agent
- Build the project:
go build -o redt-agent
sudo cp -a redt-agent.service /etc/systemd/system/redt-agent.service
sudo systemctl enable redt-agent
sudo systemctl start redt-agent
sudo systemctl status redt-agent
sudo journalctl -u redt-agent
Create a configuration file named config.yaml in the project directory, and populate it with the following example configuration:
backendURL: "https://redt.top/api"
pollInterval: 60 # seconds
upgradeCheckPeriod: 5 # minutes
Update the URLs and intervals according to your backend service and requirements.
Execute the compiled binary to run the redt-agent:
./redt-agent
The agent will start collecting and reporting data to the backend service based on the configuration file.
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.
The team and contributors who maintain the Go programming language Everyone who has provided feedback and suggestions for this project
- @bluet - Idea & Initial work
See also the list of contributors who participated in this project.
- Hat tip to anyone whose code was used
- Inspiration
- References