Visualize metrics dashboards on the terminal, like a simplified and minimalist version of Grafana for terminal.
The utility(script) can be found in the /opt/cray/platform-utils directory in all NCNs.
Exit with q
or Esc
.
./grafterm.sh --help
./grafterm.sh --list
To view the dashboard, pass the value(dashboard json file) to the -c
parameter to the script.
The Grafterm will query for all data accessible in the datasource by default, and the dashboard refresh frequency is set to 10 seconds.
./grafterm.sh -c critical_services_dashboard.json
./grafterm.sh -c critical_services_dashboard.json -d 3h
./grafterm.sh -c critical_services_dashboard.json -r 10s
./grafterm.sh -c critical_services_dashboard.json -d 3h -r 10s
Set a fixed time range to visualize the metrics using duration notation. In the following example, the start time is now-23h
and end time is now-18h
.
./grafterm.sh -c critical_services_dashboard.json -s 23h -e 18h
Set a fixed time range to visualize the metrics using timestamp [ISO 8601] notation.
./grafterm.sh -c critical_services_dashboard.json -s 2021-10-30T11:25:10+05:00 -e 2021-10-30T11:55:10+05:00