Comments (5)
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.
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.
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.
Add the "-it" option to your Docker run command line in order to allow the local console from the container.
from glances.
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)
- TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
- Config file (at least InfluxDB2 section) is not read correctly. All fields are read as `None` HOT 1
- How can i build glances with nuikta?
- Process list isn't showing up while running from Docker
- Crach when ENTER key is pressed in the Alpine minimal image HOT 1
- Crash when reading timezone for generating alert HOT 2
- pip glances export does't have docker resource HOT 1
- Refactor the QuickLook plugin to add Load HOT 1
- zsh: command not found: glances
- On Linux OS, add guest CPU stat HOT 1
- Unable to Autostart glances using the systemd instructions [SOLVED] HOT 1
- ubuntu-latest-full with docker stat support HOT 1
- If FastAPI server failed to start, Glances do not return a critical error
- Use glances network alias if available HOT 1
- url_prefix does not work on develop HOT 2
- Release 3.4.0.2's Alpine docker base out of date; Release 3.4.0.2 on newer Alpine 3.19.1 and 3.18.6 tags
- .gitignore in package HOT 1
- Ability to use glances --export influxdb in web interface mode HOT 1
- Glances silently fails on Windows 11 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glances.