Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Grafana

How to Monitor CPU and Memory for a Nonstop YouTube Stream on Hetzner Cloud

Use guest-level metrics from Node Exporter, Prometheus and Grafana to track CPU, available memory and swap for a nonstop YouTube stream on Hetzner Cloud.

By VGSources Team 7 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a nonstop YouTube stream on Hetzner Cloud, monitor the Linux server from inside its operating system: run Node Exporter on the stream host, have Prometheus scrape it, and use Grafana to inspect current values and trends. Hetzner’s preinstalled Prometheus/Grafana image is a quicker starting point, but the services must be activated after boot. Neither a single CPU or memory reading nor a universal percentage can prove a stream is safe; compare metrics with the server’s normal workload and check the streaming service itself.

What CPU and memory monitoring can—and cannot—tell you

Hetzner Cloud’s provider-level graphs and guest operating-system metrics answer different questions. To understand pressure inside the Linux server running your stream software, collect guest metrics with Node Exporter and scrape them with Prometheus. Node Exporter exposes hardware and kernel metrics over HTTP; Prometheus stores samples over time, and Grafana can display them as dashboards. See the Prometheus Node Exporter guide.

These measurements can show whether the host is under sustained CPU or memory pressure, but they do not tell you by themselves whether YouTube is receiving a healthy stream. Pair resource graphs with the stream process’s service status, logs, and an end-to-end health check or heartbeat appropriate to your setup. No source establishes a CPU or memory percentage that guarantees a healthy YouTube stream: requirements vary with the software, encoding or relay workload, operating system, and server size.

Choose where to run the monitoring stack

Approach Setup and placement Best fit
Hetzner Prometheus/Grafana app image Lower initial installation effort; components are preinstalled on the server, but need activation after boot. Metrics and monitoring may share the stream server. A single-server operator who wants a packaged starting point. See Hetzner’s Prometheus/Grafana app page.
Install and configure the exporter and Prometheus independently More control over configuration and placement. Prometheus can run on a separate monitoring host, scraping the stream host over a restricted network path. An operator with existing monitoring, multiple servers, or a reason to keep monitoring available if the stream server fails. The Hetzner Community tutorial describes a Debian-based setup; it dates from 2021, so current package details may differ.

A separate monitor host is not required for one VPS, but it can keep the monitoring interface available during an outage of the stream server. Whichever approach you choose, avoid exposing the exporter endpoint to the public internet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Option 1: Start with Hetzner’s packaged app image

  1. Create a server from the Prometheus/Grafana app image. Choose it in the Hetzner Cloud Console, or provision the image through Hetzner’s API. The app page lists Prometheus, Grafana, Node Exporter, and other components.
  2. Connect over SSH after the server boots. Follow the activation procedure in the app image’s documentation. Preinstalled does not mean automatically activated: complete the post-boot steps before expecting metrics or dashboards to work.
  3. Check that the target is being scraped. In Prometheus, confirm that the Node Exporter target is up before relying on its graphs. If components share one server, remember that a failure of that server can also take down its local monitoring stack.
  4. Open Grafana and build or select useful panels. Plot CPU over time, available memory and swap trends, and supporting context such as filesystem space and network activity. Confirm metric names and labels against the metrics exposed by your installed version.

Option 2: Install Node Exporter and configure Prometheus

This route suits an existing monitoring setup or a separate Prometheus host. Commands and package steps depend on your Linux distribution and on whether the stream runs directly on the host or in a container; consult the current installation instructions for your OS rather than assuming the older Debian-specific tutorial applies unchanged.

  1. Run Node Exporter on the stream host. Install and start it using the instructions for your distribution. Node Exporter is intended to expose host-system metrics. If you run it in a container without suitable host access, its view may represent the container rather than the complete server; see the Node Exporter project documentation.
  2. Verify the endpoint locally. On the monitored host, run curl http://localhost:9100/metrics. A working endpoint returns metric text, including names prefixed with node_. If it does not, check whether the exporter service is running and listening on the expected address and port.
  3. Add the exporter as a Prometheus target. For a single host where Prometheus can reach the exporter locally, the official guide’s example uses localhost:9100 and a 15-second scrape interval. Treat that interval as an example, not a required setting. For a separate Prometheus host, use the stream server’s private address and permit inbound TCP 9100 only from the Prometheus host.
  4. Confirm scrape health. Check Prometheus target status and resolve any scrape error before building conclusions from dashboard panels. The Hetzner Community tutorial demonstrates checking target health and last error; its specific configuration details may need updating for current distributions.
  5. Keep the endpoint private. Restrict TCP 9100 with the applicable firewall or private-network controls so only the authorized scraper can reach it. Do not make Node Exporter publicly accessible just to simplify scraping.

Build graphs that show pressure over time

CPU: query a rate, not the raw counter

node_cpu_seconds_total is a cumulative counter of CPU time, not a current CPU percentage. A raw counter will generally increase as the system runs, so chart a rate over a recent time window instead. Prometheus’s guide demonstrates rate(node_cpu_seconds_total{mode="system"}[1m]). Adapt the labels and expression to the CPU meaning your panel is meant to show; this example isolates the system mode and is not, by itself, a whole-machine utilization percentage.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Memory and swap: look for persistent change

Track available memory over time, along with swap activity where the relevant collectors and metrics are enabled. A continuing decline or growing swap activity deserves investigation, but one isolated sample does not establish that the server is out of resources. Check which process is using memory and whether the streaming workload or another service changed during the same period.

Use other host metrics as context

Filesystem capacity and network activity can help explain a change in CPU or memory, but they do not confirm that YouTube ingest is healthy. Node Exporter provides a broad set of hardware and kernel metrics; verify the names and labels on the installed exporter version before using a query. Compare graph changes with the stream process’s logs and service status around the same time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Set alerts from your own baseline

Start by observing a normal stream under the actual server size, operating system, and workload. Then set operator-chosen alerts for conditions such as:

  • Prometheus can no longer scrape the monitoring target or Node Exporter is unavailable.
  • CPU pressure remains elevated long enough to matter, rather than briefly spiking.
  • Available memory stays low or continues falling, or swap activity grows.
  • The streaming service stops, restarts unexpectedly, or fails an appropriate stream health check.

Choose durations and thresholds through observation and testing on your server; these are configuration choices, not validated defaults or universal YouTube limits. A brief spike can be normal. Monitoring can make resource trouble visible, but it cannot guarantee uninterrupted delivery.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to tell whether the server is running out of resources

  • Compare against the baseline: look for sustained loss of CPU or memory headroom, not a percentage considered in isolation.
  • Check timing: correlate the change with stream start, a restart, an encoding or relay change, or another workload. Use logs and service status to identify what changed.
  • Separate host health from stream health: a healthy exporter target only says Prometheus can scrape metrics. It does not prove the stream reaches YouTube.
  • Investigate before resizing: identify the process consuming resources and check for other workloads. If pressure persists under the intended workload, consider whether the server size or deployment needs to change.
  • Check monitoring visibility: if a host-local stack disappears at the same time as the stream server, a separate monitoring host may provide a more independent view.

Troubleshoot missing or misleading metrics

Prometheus target is down

Check that Node Exporter is running, that its metrics endpoint responds locally, and that Prometheus is configured with the correct reachable address. For separate hosts, verify routing and the firewall rule for TCP 9100. Permit access only from the scraper.

The dashboard shows no data or an unexpected CPU value

Confirm the target is up, then inspect the installed endpoint’s metric names and labels. CPU time is a counter: use a rate query over a window rather than interpreting the cumulative value as current use. A query filtered to one CPU mode does not represent every kind of CPU time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Host graphs look normal but the YouTube stream is unhealthy

Host metrics are not an end-to-end delivery check. Inspect the streaming service’s logs and status, and use a stream health check or heartbeat suitable for the software. System metrics alone cannot establish the health of YouTube ingest.

Container metrics do not represent the whole server

Node Exporter is designed for host metrics. A container deployment without appropriate access to host information may expose a limited view. Adjust the deployment to provide the intended host visibility or run the exporter directly on the host, following the project’s documentation.

Or let it run in the cloud

If your goal is a continuous YouTube stream from uploaded recordings rather than a live camera feed, StreamNeo is a cloud alternative to running and monitoring a stream process on your Hetzner server: upload a recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; each slot streams your upload as made, up to 4K 60fps, at one flat price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card (one free day per account). Monthly pricing is $9.99 per month. It streams to YouTube only, and UPI is available in India. Start your free StreamNeo day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from Patch Notes

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.