Setup steps
- Log in to New Relic
- Select your account / stack
- Choose the machine OS for the agent install
- Create a license / ingest key
- Run the install command New Relic shows on your host
Follow the UI’s guided install for Linux (or your OS). After a few minutes, the host should appear under infrastructure / entities.
Entities & hosts
New Relic entities represent things you observe — hosts, apps, services. The Hosts view gives observability for the machine: CPU, memory, disk, network.
Experiment — spike CPU
On the machine, create a tiny infinite loop to generate CPU load:
// stress.js
let c = 1;
while (true) {
if (Math.random() < 0.1) {
c = c + 1;
}
}node stress.jsWatch the host charts in New Relic — CPU should rise. Stop the process with Ctrl+C when done.
Only run stress scripts on lab machines you own. Do not stress production hosts.
If the host does not appear, check the agent is running, the license key is correct, and outbound HTTPS to New Relic is allowed.