nview is a local monitoring tool for Cardano nodes, supporting multiple implementations including cardano-node, Dingo, and Amaru. It's designed to complement remote monitoring tools by providing a local command-line view of running nodes. The TUI (terminal user interface) is built to fit most screens and provides real-time metrics and status information.
The goal with nview is to provide an alternative to the Guild LiveView (gLiveView.sh) shell scripts which is shipped as a single binary with all of the functionality included natively. This allows the tool to be more portable to non-Linux systems by using Go standard library functionality.
The design is more in line with a 12-factor application, with no config files or other on-disk requirements. Functionality is controlled via environment variables within the application's context. This prevents the application from being a drop-in replacement for gLiveView for Cardano Node administrators, but unlocks the ability to add functionality beyond that easily attainable with a shell script.
nview automatically detects and supports multiple Cardano node implementations:
- cardano-node: The official Cardano node implementation
- Dingo: A Cardano node implementation focused on performance
- Amaru: Another Cardano node implementation with specific optimizations
The tool automatically detects the running node type based on Prometheus metrics and adjusts its display accordingly. No configuration changes are needed - just run nview against any supported Cardano node.
Amaru has no Prometheus endpoint of its own. It exports OpenTelemetry metrics to an OpenTelemetry Collector, and nview scrapes the Collector's Prometheus exporter.
- Start Amaru with
AMARU_WITH_OPEN_TELEMETRY=1andOTEL_EXPORTER_OTLP_ENDPOINTset to the Collector's OTLP/gRPC address. - Configure the Collector's
prometheusexporter withadd_metric_suffixes: false, so metric names staycardano_node_metrics_*. - Point nview at the exporter with
PROM_HOSTandPROM_PORT.
Set OTEL_METRIC_EXPORT_INTERVAL below 60 seconds and the Collector's
metric_expiration above it, or the series expire between exports.
nview recognises Amaru from its process_* and amaru_consensus_* metrics. It
reads the version, uptime, CPU and memory from the scrape, because the Collector
may run on another host from the node. The Amaru Focus pane also shows header
and mempool outcomes and the consensus durations (block fetch, header forward,
slot start to header, fork switch) as a lifetime average and the average since
the previous scrape. Amaru does not export peer counters, so those display as
n/a.
Running nview against a running Cardano Node will work out of the box with a default Cardano Node configuration, which exposes metrics in Prometheus data format on a specific port. nview automatically detects the node implementation (cardano-node, Dingo, or Amaru) and adjusts its display accordingly.
./nviewOr, from source:
go run .Configuration can be controlled by either a configuration file or environment variables. In cases where both are present, the environment variable takes precedence.
The following environment variables control the behavior of the application.
NODE_NAME- Changes the name displayed by nview, default is "Cardano Node", maximum 19 charactersNETWORK- Short-cut environment variable to use a default configuration for the given known named network. OverridesCARDANO_NETWORK, default ""CARDANO_NETWORK- Named network configured on the Cardano Node, default is "mainnet"CARDANO_NODE_BINARY- Specifies the node binary type (cardano-node,dingo, oramaru). If not set, nview will attempt to auto-detect based on metricsPROM_HOST- Sets the host address used to fetch Prometheus metrics from a Cardano Node, default is "127.0.0.1"PROM_PORT- Sets the host port used to fetch Prometheus metrics from a Cardano Node, default is 12798PROM_TIMEOUT- Sets the maximum number of seconds to wait for response when polling a Cardano Node for Prometheus metrics, default is 3NVIEW_VISUAL_MODE- Controls optional terminal glyphs for the TUI:auto,unicode,plain, ornerd. The default isauto. In the YAML file this isapp.visualMode. Trend charts for the tip gap, mempool size and mean peer RTT are drawn with braille cells inunicodeandnerdmodes, and as an ASCII sparkline inplainmode. If your terminal font draws braille as empty boxes, useplain.NVIEW_IMAGE_PROTOCOL- Controls terminal image protocol detection for the header status badge strip:auto,none,kitty,iterm2, orsixel. The default isauto. In the YAML file this isapp.imageProtocol. Unsupported terminals retain the text-only header.
To use a configuration file, run nview with a command line flag to set the
file to load as a configuration.
./nview -config /path/to/config.ymlconfig.yaml:
app:
nodeName: Cardano Node
network:
visualMode: auto
imageProtocol: auto
node:
binary: cardano-node # or 'dingo' or 'amaru'
network: mainnet
port: 3001
prometheus:
host: 127.0.0.1
port: 12798
timeout: 3
An example configuration is provided at config.yaml.example.
# Auto-detection (recommended)
./nview
# Or explicitly set
CARDANO_NODE_BINARY=dingo ./nview# Auto-detection (recommended)
./nview
# Or explicitly set
CARDANO_NODE_BINARY=amaru ./nviewPROM_PORT=9090 ./nviewPROM_HOST=192.168.1.100 PROM_PORT=12798 ./nviewIf nview shows "Cardano Node" instead of the expected implementation:
- Ensure your node is running and exposing Prometheus metrics
- Check that the correct
PROM_HOSTandPROM_PORTare set - For manual override, set
CARDANO_NODE_BINARYenvironment variable
- Verify Prometheus metrics are accessible:
curl http://127.0.0.1:12798/metrics - Check firewall settings if monitoring remotely
- Increase timeout if on slow networks:
PROM_TIMEOUT=10 ./nview
- Ensure terminal supports Unicode characters
- Check the terminal size: cardano-node and Amaru need at least 112x30, and Dingo needs at least 70x12 (it switches to a compact view below 92 columns or 28 rows). Below the minimum, nview shows "Terminal too small" with the size it needs instead of a broken layout.
- For color issues, ensure terminal supports 256 colors
We embed free GeoLite2 city data created by MaxMind, available from https://www.maxmind.com and licensed under CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/

