Coder Social home page Coder Social logo

sosviz's Introduction

sosviz

Extract information from sos reports and export it in other formats.

Installation

pip install --user sosviz

System dependency to dot from the graphviz package.

Usage

usage: sosviz [-h] [-V] [-d] [-f {dot,text,json,svg}] PATH

Collect information from an sos report folder and export it in other formats
on standard output.

positional arguments:
  PATH                  Path to an uncompressed sos report folder.

options:
  -h, --help            show this help message and exit
  -V, --version         Show version and exit.
  -d, --debug           Show debug info.
  -f {dot,text,json,svg}, --format {dot,text,json,svg}
                        Output format (default: svg).

Examples:

sosviz ~/tmp/sosreport > example.svg
sosviz -f dot ~/tmp/sosreport | dot -Tpng > example.png
sosviz --debug -f json ~/tmp/sosreport | jq -C | less -R

Example SVG output

example.svg

sosviz's People

Contributors

rjarry avatar

Stargazers

Eugene Paniot avatar  avatar  avatar Sanjay Upadhyay avatar Konstantinos Karampogias avatar Eelco Chaudron avatar

Watchers

 avatar

Forkers

juanmasg ackdo

sosviz's Issues

Getting "error: 'Core Enabled'" when running sosviz command with any parameter

It doesn't matter what parameter I try to use with the sosviz command, I always get the same error, as below:

$ sosviz os1004/
error: 'Core Enabled'

$ sosviz --debug os1004/
Traceback (most recent call last):
  File "/home/gru/alolivei/.local/bin/sosviz", line 8, in <module>
    sys.exit(main())
  File "/home/gru/alolivei/.local/lib/python3.9/site-packages/sosviz/__main__.py", line 57, in main
    report = collect.parse_report(args.path)
  File "/home/gru/alolivei/.local/lib/python3.9/site-packages/sosviz/collect/__init__.py", line 21, in parse_report
    collector.parse_report(path, data)
  File "/home/gru/alolivei/.local/lib/python3.9/site-packages/sosviz/collect/platform.py", line 48, in parse_report
    cores=int(b["Core Enabled"]),
KeyError: 'Core Enabled'

Other useful information:

$ pip install --user sosviz
Requirement already satisfied: sosviz in /home/gru/alolivei/.local/lib/python3.9/site-packages (0.2.9)
Requirement already satisfied: graphviz in /home/gru/alolivei/.local/lib/python3.9/site-packages (from sosviz) (0.20.3)
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /home/gru/alolivei/.local/lib/python3.9/site-packages
sysconfig: /home/gru/alolivei/.local/lib64/python3.9/site-packages
WARNING: Additional context:
user = True
home = None
root = None
prefix = None

$ rpm -qa | grep -i graphviz
graphviz-2.44.0-26.el9.x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.