defmodule ToweropsWeb.HelpLive.Sections.Graphs do @moduledoc false use ToweropsWeb, :html def render(assigns) do ~H"""

Graphs & Live Polling

Towerops provides powerful visualization capabilities for all monitored metrics. Every sensor, interface, and metric can be viewed as a time-series graph with multiple time ranges and a real-time live polling mode for instant feedback.

Accessing Graphs

Graphs are available throughout Towerops wherever metrics are displayed:

Time Ranges

All graphs support multiple time ranges for analyzing trends at different scales:

1 Hour

Recent activity with high detail

6 Hours

Half-day trends and patterns

12 Hours

Business day overview

24 Hours (Default)

Full day of activity

7 Days

Weekly trends and patterns

30 Days

Monthly overview and capacity planning

Live Polling Mode

Live mode provides real-time sensor monitoring with data updating every second. This is perfect for:

<.icon name="hero-signal" class="h-5 w-5 text-green-600 dark:text-green-400 flex-shrink-0 mt-0.5" />

How Live Mode Works

  • Polls sensors directly via SNMP every 1 second
  • Displays a rolling 5-minute window (300 data points)
  • Updates chart in real-time as new data arrives
  • Automatically stops when you switch to another time range
  • Works with remote pollers - polling happens on the agent

Using Live Mode

1

Open Any Graph

Navigate to any device and click on a metric graph (CPU, Memory, Temperature, Traffic, etc.)

2

Click the "Live" Button

The Live button has a distinctive green gradient style and will pulse when active

3

Watch Real-Time Updates

The graph will start updating every second with fresh data. A pulsing green indicator shows that live polling is active.

4

Switch Back to Historical Data

Click any other time range button to stop live polling and view historical data

Supported Metrics in Live Mode

<.icon name="hero-cpu-chip" class="h-4 w-4 text-blue-500" /> CPU / Processors

Real-time CPU load and utilization

<.icon name="hero-circle-stack" class="h-4 w-4 text-blue-500" /> Memory Usage

RAM utilization percentage

<.icon name="hero-fire" class="h-4 w-4 text-orange-500" /> Temperature

Device and component temperatures

<.icon name="hero-bolt" class="h-4 w-4 text-yellow-500" /> Voltage

Power supply voltages

<.icon name="hero-server-stack" class="h-4 w-4 text-purple-500" /> Storage

Disk usage and capacity

<.icon name="hero-hashtag" class="h-4 w-4 text-green-500" /> Custom Metrics

Sessions, connections, and counts

<.icon name="hero-information-circle" class="h-5 w-5 text-blue-600 dark:text-blue-400 flex-shrink-0 mt-0.5" />

Note About Traffic Graphs

Live mode is currently only available for sensor metrics (CPU, memory, temperature, etc.). Interface traffic graphs use historical data only, as traffic calculations require comparing multiple SNMP polls over time.

Tips for Using Graphs

Multiple Sensors on One Graph

When viewing aggregate metrics (like "Temperature" for all sensors), the graph automatically displays all sensors of that type with different colors for easy comparison.

Max and Min Values

Historical graphs (non-live) display the maximum and minimum values for the selected time range at the bottom of the chart for quick reference.

Traffic Graph Direction

Interface traffic graphs show outbound traffic as positive values (above zero) and inbound traffic as negative values (below zero) for easy visualization of bidirectional flow.

Automatic Unit Scaling

Traffic graphs automatically scale units (bps, Kbps, Mbps, Gbps) based on the data range for optimal readability. Hover over data points to see exact values.

<.icon name="hero-light-bulb" class="h-5 w-5 text-yellow-600 dark:text-yellow-400 flex-shrink-0 mt-0.5" />

Performance Tip

Live polling makes direct SNMP requests every second. While this provides instant feedback, keeping many live graphs open simultaneously may impact device performance. Use live mode for troubleshooting and testing, then switch back to historical ranges for routine monitoring.

""" end end