reachfh / observer_cli

Visualize Erlang Nodes On The Command Line

Home Page:http://zhongwencool.github.io/observer_cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


#observer_cli Build Status Hex.pm

Visualize Erlang/Elixir Nodes On The Command Line By Using recon.

Animation Show.

##Goal Minimal consumption.

Just look like observer, but in shell,

you might think observer_cli would be more convenient than observer.


###Install Erlang

%% rebar.config
{deps, [observer_cli]}

Elixir

# mix.exs
   def deps do
     [{:observer_cli, "~> 1.1.0"}]
   end
   def application do
     [applications: [:observer_cli]]
  end

###Try In Shell

$ rebar3 shell
1> observer_cli:start().

###Escriptize

  1. rebar3 escriptize to generate an escript executable containing the project's and its dependencies' BEAM files.

    Place script(_build/default/bin/observer_cli) anywhere in your path and use observer_cli command.

  2. observer_cli <TARGETNODE> <TARGETCOOKIE> to monitor remote node.

    ensure obsever_cli application start on target node.


Process And System Information

Top

Process

ETS And System Information

System

Allocator Information

Allocator

Mnesia Information

Mnesia

Help Information

Help


###Command

> observer_cli:start().%% default refresh interval is 2000
> observer_cli:start(Node).
> observer_cli:start(Node, Cookie).

###TODO

  • Processes Memory, Binary, Total Heap Size, Reductions Top.
  • include System and Architecture, CPU's and Threads metrics in observer's system
  • Memory Allocators: std, ll, eheap, ets,fix, binary, driver.
  • ets include all metrics ets in observer's Table Viewer.
  • doc (keep simple)
  • remote node support
  • mneisa: table info by using mnesia:info, mnesia:system_info/1,
  • Draw all application’s relations.
  • Trace Overview. You should use recon_trace.

###Changelog

  • 1.1.0

    • Support escript, observer_cli <TARGETNODE> <COOKIE>
  • 1.0.9

    • Upgrade rebar3 to 3.3.3 for publish hex repo.

###License See the LICENSE file for license rights and limitations (MIT).

About

Visualize Erlang Nodes On The Command Line

http://zhongwencool.github.io/observer_cli

License:MIT License


Languages

Language:Erlang 100.0%