oneuptime/InfrastructureAgent
2024-04-09 13:03:32 +01:00
..
Jobs Add InfrastructureAgent files to .gitignore and update daemon management logic in Index.ts 2024-04-09 12:38:56 +01:00
Scripts/Build Remove Linux installation script and update server monitor documentation 2024-03-18 13:22:24 +00:00
Types Add ServerProcess interface and processes field to ServerMonitorResponse 2024-04-02 19:47:22 +01:00
Utils Add logging for server processes 2024-04-02 20:29:12 +01:00
Dockerfile.tpl Update Dockerfile.tpl files to set APP_VERSION to 1.0.0 if not set 2024-04-09 13:03:32 +01:00
Index.ts Add InfrastructureAgent files to .gitignore and update daemon management logic in Index.ts 2024-04-09 12:38:56 +01:00
nodemon.json Update code formatting and fix bug in file processing 2024-03-06 10:37:47 +00:00
package-lock.json Update infrastructure agent to use tsx instead of ts-node 2024-04-03 10:47:02 +01:00
package.json Update infrastructure agent to use tsx instead of ts-node 2024-04-03 10:47:02 +01:00
README.md Add InfrastructureAgent files to .gitignore and update daemon management logic in Index.ts 2024-04-09 12:38:56 +01:00
sea-config.json Update sea-config.json and .gitignore, and add build script to package.json 2024-03-12 13:47:37 +00:00
Start.ts Refactor MonitorInfrastructure class and extract monitorServerMetrics method 2024-04-08 14:50:37 +01:00
tsconfig.json Update tsconfig.json files with resolveJsonModule option 2024-04-08 14:03:07 +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

npm i @oneuptime/infrastructure-agent -g

# 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 start --secret-key=YOUR_SECRET_KEY --oneuptime-url=https://oneuptime.com

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

Stopping the agent

oneuptime-infrastructure-agent stop

Check the status of the agent

oneuptime-infrastructure-agent status

Logs

oneuptime-infrastructure-agent logs

Uninstalling the agent

npm uninstall -g @oneuptime/infrastructure-agent

Supported Platforms

  • Linux
  • MacOS
  • Windows

Local Development

When you're developing locally, you can run the agent in development mode to send metrics to local oneuptime server.

npm run start -- --secret-key=YOUR_SECRET_KEY --oneuptime-url=http://localhost