Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Influxdb2 export not working #2407

Closed
drewzeee opened this issue May 18, 2023 · 2 comments
Closed

Influxdb2 export not working #2407

drewzeee opened this issue May 18, 2023 · 2 comments

Comments

@drewzeee
Copy link

drewzeee commented May 18, 2023

Describe the bug

As of Monday/Tuesday, glances --export influxdb2 returns the following:
Traceback (most recent call last): File "/usr/local/bin/glances", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/glances/__init__.py", line 180, in main start(config=core.get_config(), args=core.get_args()) File "/usr/local/lib/python3.9/dist-packages/glances/__init__.py", line 108, in start mode = GlancesMode(config=config, args=args) File "/usr/local/lib/python3.9/dist-packages/glances/standalone.py", line 44, in __init__ self.stats = GlancesStats(config=config, args=args) File "/usr/local/lib/python3.9/dist-packages/glances/stats.py", line 39, in __init__ self.load_modules(self.args) File "/usr/local/lib/python3.9/dist-packages/glances/stats.py", line 90, in load_modules self.load_exports(args=args) File "/usr/local/lib/python3.9/dist-packages/glances/stats.py", line 167, in load_exports self._exports[export_name] = export_module.Export(args=args, config=self.config) File "/usr/local/lib/python3.9/dist-packages/glances/exports/glances_influxdb2.py", line 52, in __init__ self.interval = int(self.interval) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I don't have the knowledge base to understand what's goin on here, so I thought to post here.

Environement (please complete the following information)

  • Using Proxmox (debian 11)
  • Glances v3.4.0.1 with PsUtil v5.9.5
  • Installed via pypi

Additional context
Strangely enough, glances --export influxdb3 actually (half-way) works as intended as it starts to feed metrics to my terminal. However it will not export into my influxdb database, even when changing glances.conf to replace "influxdb2" with "influxdb3"

@nicolargo nicolargo added this to the Glances 3.4.0.2 milestone May 18, 2023
@nicolargo nicolargo changed the title Influxdb export not working Influxdb2 export not working May 18, 2023
nicolargo added a commit that referenced this issue May 18, 2023
nicolargo added a commit that referenced this issue May 18, 2023
@nicolargo
Copy link
Owner

My bad... should be corrected in the hotfix available in Glances 3.4.0.2 (available now on Pypi).

Can you test it @drewzeee ?

@drewzeee
Copy link
Author

It works! You da man @nicolargo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants