The OneUptime Infrastructure Agent is a lightweight, open-source agent that collects system metrics and sends them to the OneUptime platform. It is designed to be easy to install and use, and to be extensible.
curl -s https://oneuptime.com/docs/static/scripts/infrastructure-agent/install.sh | bash
Configure the agent as a system service
- You can change the host to your own host if you're self hosting the OneUptime platform.
- You can find the secret key on OneUptime Dashboard. Click on "View Monitor" and go to "Settings" tab.
oneuptime-infrastructure-agent configure --secret-key=YOUR_SECRET_KEY --oneuptime-url=https://oneuptime.com
oneuptime-infrastructure-agent start
Once its up and running you should see the metrics on the OneUptime Dashboard.
oneuptime-infrastructure-agent stop
oneuptime-infrastructure-agent restart
oneuptime-infrastructure-agent uninstall && rm -rf /usr/bin/oneuptime-infrastructure-agent
- Linux
- MacOS
- Windows
This section is for developers who want to contribute to the agent. The agent is written in Go.
go mod tidy
go install
go build
sudo ./oneuptime-infrastructure-agent configure --secret-key=YOUR_SECRET_KEY --oneuptime-url=https://localhost
sudo ./oneuptime-infrastructure-agent start
sudo ./oneuptime-infrastructure-agent stop