Giter Club home page Giter Club logo

Comments (5)

nicolargo avatar nicolargo commented on May 12, 2024

Hi @bdcarr

why do you run two Glances instances (server and client) ?

To export to InfluxDB, one single standalone instance should make the job.

Nicolas

from glances.

bdcarr avatar bdcarr commented on May 12, 2024

Hi mate, it says export is only available in standalone or client mode. Standalone doesn't seem to work in docker:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/app/glances/__main__.py", line 18, in <module>
    glances.main()
  File "/app/glances/__init__.py", line 185, in main
    start(config=core.get_config(), args=core.get_args())
  File "/app/glances/__init__.py", line 108, in start
    mode = GlancesMode(config=config, args=args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/glances/standalone.py", line 106, in __init__
    self.screen = GlancesCursesStandalone(config=config, args=args)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/glances/outputs/glances_curses.py", line 143, in __init__
    self.screen = curses.initscr()
                  ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/curses/__init__.py", line 29, in initscr
    setupterm(term=_os.environ.get("TERM", "unknown"),
_curses.error: setupterm: could not find terminal

from glances.

bdcarr avatar bdcarr commented on May 12, 2024

I'd be stoked to be able to do this with one instance, as I'm running it on a Pi so resources are a bit precious.

from glances.

nicolargo avatar nicolargo commented on May 12, 2024

Add the "-it" option to your Docker run command line in order to allow the local console from the container.

from glances.

bdcarr avatar bdcarr commented on May 12, 2024

Oh beauty, I thought I already tried that but must've mucked it up. Adding interactive: true to my docker-compose has made it work in standalone mode. Thanks, that solves my use case at least 🙌

from glances.

Related Issues (20)

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.