Lesson 1
Connect your homelab / GPU rig in 60s
This uses the enrollment token and the outbound energyatit-agent that Device Onboard already ships. One command on the rig posts GPU readings from your datacenter. The lesson finishes when a real GPU reading arrives on your token. Read what you need before step 1. The public board is a separate opt-in.
What you need
Check these on the computer that will run the agent, before step 1. Each check is one command.
NVIDIA GPU
Prints a GPU table when the NVIDIA driver sees a card. If the command is missing, the driver is not installed. If it lists no devices, this computer has no NVIDIA GPU.
nvidia-smi
NVIDIA driver install guideDocker
Prints a Docker version when Docker is installed on this computer.
docker --version
Install DockerNVIDIA Container Toolkit
Prints a version when the toolkit CLI is installed. The run command in step 2 uses --gpus all, which Docker refuses until this toolkit is installed and configured for Docker.
nvidia-ctk --version
Install the NVIDIA Container Toolkit
No NVIDIA GPU or no Docker
This lesson has no sample mode and no simulated datacenter. energyatit-agent posts only readings it collects from your machine. It does not invent GPU watts. Without a GPU, download the single file and point it at a Redfish BMC or an SNMP PDU. This page finishes only when a real GPU reading arrives on your token.
If you need the lesson completion and nvidia-smi is missing, continue with the next lesson. Redfish and SNMP readings still show on Device Onboard.
Next lesson: Foundations: What Is the Power Chain and Why It MattersNo GPU? Start with the computer you are on1. Get the agent
Pull ghcr.io/kasathur/energyatit-agent:latest, or download one file and run it with node. You do not need this git checkout.
docker pull ghcr.io/kasathur/energyatit-agent:latest
curl -fsSL https://energyatit.com/agent/energyatit-agent.mjs -o energyatit-agent.mjs
2. One enroll command
Sign in, then open this lesson again. Sign-in returns to Campus Command.
YOUR_TOKEN is a placeholder. It is not an enrollment token. The live eat_enr_ value is shown once after you create it.
docker run --rm --gpus all -e ENERGYATIT_BASE_URL=https://energyatit.com -e ENERGYATIT_ENROLLMENT_TOKEN=YOUR_TOKEN -e ENERGYATIT_AGENT_ID=gpu -e NVIDIA_SMI=1 ghcr.io/kasathur/energyatit-agent:latest
The GPU command passes --gpus all and NVIDIA_SMI=1, so the container posts GPU watts. Without the NVIDIA Container Toolkit, use the DCGM URL, the Redfish command, or the single file. The same token works on Device Onboard.
DCGM exporter
docker run --rm --network host -e ENERGYATIT_BASE_URL=https://energyatit.com -e ENERGYATIT_ENROLLMENT_TOKEN=YOUR_TOKEN -e ENERGYATIT_AGENT_ID=gpu -e DCGM_EXPORTER_URL=http://127.0.0.1:9400/metrics ghcr.io/kasathur/energyatit-agent:latest
Redfish BMC
docker run --rm -e ENERGYATIT_BASE_URL=https://energyatit.com -e ENERGYATIT_ENROLLMENT_TOKEN=YOUR_TOKEN -e ENERGYATIT_AGENT_ID=bmc -e REDFISH_POWER_URL=https://bmc.example/redfish/v1/Chassis/1/Power -e REDFISH_THERMAL_URL=https://bmc.example/redfish/v1/Chassis/1/Thermal -e REDFISH_USERNAME=admin -e REDFISH_PASSWORD=changeme ghcr.io/kasathur/energyatit-agent:latest
SNMP PDU
docker run --rm -e ENERGYATIT_BASE_URL=https://energyatit.com -e ENERGYATIT_ENROLLMENT_TOKEN=YOUR_TOKEN -e ENERGYATIT_AGENT_ID=pdu -e SNMP_HOST=pdu.example -e SNMP_COMMUNITY=public -e SNMP_KIND=pdu -e SNMP_OID=1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 ghcr.io/kasathur/energyatit-agent:latest
No GPU, no Docker
curl -fsSL https://energyatit.com/agent/energyatit-agent.mjs -o energyatit-agent.mjs && ENERGYATIT_BASE_URL=https://energyatit.com ENERGYATIT_ENROLLMENT_TOKEN=YOUR_TOKEN ENERGYATIT_AGENT_ID=bmc REDFISH_POWER_URL=https://bmc.example/redfish/v1/Chassis/1/Power REDFISH_THERMAL_URL=https://bmc.example/redfish/v1/Chassis/1/Thermal REDFISH_USERNAME=admin REDFISH_PASSWORD=changeme node energyatit-agent.mjs
Other equipment
A meter, UPS, or anything the agent does not collect yet can post JSON. Use type meter or pdu for facility kilowatts. Type ups is stored and is left out of PUE.
JSON ingest
curl -sS -X POST https://energyatit.com/api/v1/telemetry/ingest -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" -d '{"idempotencyKey":"meter-reading-001","readings":[{"deviceKey":"main-meter","name":"Main meter","source":"json","type":"meter","protocol":"manual","powerKw":12.4}]}'3. GPUs on your token
Sign in to watch readings from your own enrollment tokens.
4. Opt in to the public board
PUE is PDU SNMP power divided by GPU power. GPU watts alone leave PUE blank. Rack density uses the number of zone labels on those GPU readings, or one rack when the reading has no zone. Zone text is not published.
Public PUE and rack density
Anonymous codes only. No names, emails, or datacenter names.
Loading the board…