device_graph
Generate a device graph image from LibreNMS to visualize network performance metrics. Specify device, graph type, and optional time range, size, and legend for custom views.
Instructions
Render a device-level graph as an image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Graph width in pixels. | |
| height | No | Graph height in pixels. | |
| legend | No | Whether to render the graph legend. | |
| to_time | No | End of the time range, either a relative offset or a Unix timestamp. Defaults to now. | |
| hostname | Yes | Device hostname or device ID | |
| from_time | No | Start of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d). | |
| graph_type | Yes | Graph type, as returned by device_graphs_list (e.g. 'device_icmp_perf', 'device_poller_perf', 'device_availability') |