oneuptime/InfrastructureAgent
2024-05-14 17:55:15 +01:00
..
model Refactor package names and imports in InfrastructureAgent code files 2024-05-13 20:37:27 +01:00
utils chore: Refactor code to use model package for memory, processes, disk, and CPU metrics 2024-05-13 21:12:45 +01:00
.gitignore
.goreleaser.yaml Update GoReleaser command in release workflow to include GORELEASER_CURRENT_TAG environment variable 2024-05-14 16:54:45 +01:00
agent.go chore: Refactor code to use model package for memory, processes, disk, and CPU metrics 2024-05-13 21:12:45 +01:00
config.go chore: Update launch.json and config.go for InfrastructureAgent 2024-05-14 10:02:48 +01:00
go.mod chore: Update go version to 1.22.0 in go.mod file 2024-05-14 12:09:08 +01:00
go.sum chore: Refactor package names in InfrastructureAgent code files 2024-05-13 13:41:33 +01:00
LICENSE
main.go chore: Configure OneUptime Infrastructure Agent as a system service 2024-05-14 12:23:15 +01:00
README.md chore: Update infrastructure agent installation script and documentation 2024-05-14 17:55:15 +01:00
shutdown.go Refactor package names and imports in InfrastructureAgent code files 2024-05-13 20:37:27 +01:00

OneUptime Infrastructure Agent

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.

Installation

curl -s https://oneuptime.com/docs/static/scripts/infrastructure-agent/install.sh | bash

Configure the agent

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

Starting the agent

oneuptime-infrastructure-agent start

Once its up and running you should see the metrics on the OneUptime Dashboard.

Stopping the agent

oneuptime-infrastructure-agent stop

Restarting the agent

oneuptime-infrastructure-agent restart

Uninstalling the agent

oneuptime-infrastructure-agent uninstall && rm -rf /usr/bin/oneuptime-infrastructure-agent

Supported Platforms

  • Linux
  • MacOS
  • Windows