summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/python_modules
AgeCommit message (Collapse)Author
2022-10-10feat(python.d): respect NETDATA_INTERNALS_MONITORING (#13793)Ilya Mashchenko
2022-09-30fix(python.d): set correct label source for _collect_job label (#13746)Ilya Mashchenko
2022-09-08add _collect_job label to python.d/* charts (#13648)Ilya Mashchenko
2022-06-22feat(python.d/smartd_log): add 2nd job that tries to read from ↵Ilya Mashchenko
'/var/lib/smartmontools/' (#13188)
2022-06-14fix(python.d): urllib3 import collection for py3.10+ (#13136)Ilya Mashchenko
2022-04-11fix: remove instance-specific information from chart titles (#12644)Ilya Mashchenko
Co-authored-by: Vasilis Kalintiris <vasilis@netdata.cloud>
2022-01-17fix(python.d): ignore decoding errors in ExecutableService (#11979)Ilya Mashchenko
2021-04-21python.d: add plugin and module names to the runtime charts (#11007)Ilya Mashchenko
2021-02-11Fixes #10597 raw binary data should never be printed (#10603)Sven Mäder
2020-11-30python.d: always create a runtime chart on `create` call (#10296)Ilya Mashchenko
2020-08-04python.d: fix `find_binary` (#9641)Ilya Mashchenko
2020-07-21python.d: add job file lock registry (#9564)Ilya Mashchenko
2020-07-11mysql: respect `my.cnf` parameter using PyMySQL library (#9526)Anirudh Duggal
2020-07-09python.d: thread safe safe_print (stdout write) (#9508)Ilya Mashchenko
2020-07-02UrlService add support get headers (#9236)Javier Pastor
2020-03-26python.d/SimpleService: fix module name (#8492)Ilya Mashchenko
2020-03-25python.d.plugin: add prefix to the module name during loading s… (#8474)Ilya Mashchenko
auto format python.d.plugin code and add `pythond_` prefix to the modules name
2020-02-06/collectors/python.d.plugin/third_party: patch monotonic synolo… (#7980)Ilya Mashchenko
2020-02-03/pythond.d/UrlService.py: add body (#7956)Ilya Mashchenko
2020-01-03samba: properly check if it is allowed to run smbstatus with su… (#7655)Ilya Mashchenko
* samba: use `sudo -n -l COMMAND` instead of `sudo -v` to check whether we allowed to run the COMMAND * ExecutableService: log executable command
2019-12-31python.d logger: unicode_str handle TypeError (#7645)Ilya Mashchenko
* collection.py: unicode_str handle TypeError
2019-12-24python.d logger: do not unicode decode if it is already unicode (#7614)Ilya Mashchenko
2019-12-23python.d.plugin: UrlService bytes decode, logger unicode encodi… (#7601)Ilya Mashchenko
* python.d UrlService: ignore decode errors during decoding bytes (py3) * python.d logger: ignore encoding errors in unicode
2019-11-28Do not crash when logging UTF-8 data in Python 2 (#7376)Vince Zarola
When the received data contained UTF-8 characters, the plugin would crash trying to log these UTF-8 characters (when run using Python 2). Use Python 2's `unicode` function to circumvent this, but fall back back to `str` if it doesn't exist e.g. in Python 3. Fixes #7190.
2019-10-31UrlService: allow to skip tls_verify for http scheme (#7223)Ilya Mashchenko
* allow ssl_verify option for http scheme
2019-10-17unbound: fix init (#7112)Ilya Mashchenko
* SocketService: fix error handling in connect and more debug output * SocketService: use ssl.PROTOCOL_SSLv23 instead of ssl.PROTOCOL_TLS for py2 * unbound: conf parse fix
2019-10-15SimpleService: change chart suppress msg level to info (#7085)Ilya Mashchenko
2019-07-30Handle disconnected sockets in unbound collector. (#6561)Austin S. Hemmelgarn
* Handle disconnected sockets in unbound collector. This adds an explicit check for the case of a socket that's already disconnected and skips logging an error message. The conditionn technically is an error, but it's one that we can recover from trivially by just doing nothing in this case (we were trying to disconnect the scoket anyway, so if it's already disconnected, we don't need to change anything). This uses Python's `errno` module so that we can detect this situation in a system-agnostic manner. Fixes #6434
2019-06-13UrlService: add min required version check (#6263)Ilya Mashchenko
* check urllib3 version on init
2019-05-12UserService self._get_raw_data except fix (#5997)Ilya Mashchenko
2019-04-25SocketService: set socket operation timeout before connecting (#5911)Ilya Mashchenko
* set socket operation timeout before connecting * add connect, read, write timeouts * remove .setblocking calls * set default timeouts to 2
2019-04-18NEW: allow additional name argument passing to urllib3 request in UrlService ↵Andrey Galkin
(#5893) - This solves monitoring of endpoints which require POST data (allows passing "body")
2019-04-05Add memory free and per process memory usage to nvidia_smi (#5796)胡玮文
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Add memory free Add per process memory usage ##### Component Name nvidia_smi ##### Additional Information
2019-04-04python.d.plugin: allow delete dimension in runtime (#5795)Ilya Mashchenko
##### Summary Fixes: #5793 add `del_dimension` method to Chart class. method does: - sets dimension `hidden` option - sets dimension `obsolete` option - pushes chart to netdata (write to stdout) - deletes dimension from chart.dimensions ##### Component Name [`/collectors/python.d.plugin/python_modules/bases/charts.py`](https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/python_modules/bases/charts.py) ##### Additional Information
2019-03-21py stuff: change l2isbad to ilyam8 (#5676)Ilya Mashchenko
* change l2isbad to ilyam8 * change l2isbad to ilyam8
2019-03-12mysql module add ssl connection support (#5610)Ilya Mashchenko
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Fixes: #5608 Add ssl connection support to MySQLService > python-mysqlclient connection ``` :param dict ssl: dictionary or mapping contains SSL connection parameters; see the MySQL documentation for more details (mysql_ssl_set()). If this is set, and the client does not support SSL, NotSupportedError will be raised. ``` [SSL connection parameters:](https://dev.mysql.com/doc/refman/5.6/en/mysql-ssl-set.html) - **key**: The path name of the client private key file. - **cert**: The path name of the client public key certificate file. - **ca**: The path name of the Certificate Authority (CA) certificate file. This option, if used, must specify the same certificate used by the server. - **capath**: The path name of the directory that contains trusted SSL CA certificate files. - **cipher**: The list of permitted ciphers for SSL encryption. ##### Component Name [`collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService`](https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py) ___ @woosley please test it ```yaml tcp: name : 'local' user : 'user' pass : 'pass' host : 'localhost' port : '3306' ssl: key: 'path/to/key' cert: 'path/to/cet' ca: 'path/to/ca' ```
2019-03-11python loaders cleanup (#5602)Ilya Mashchenko
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary python loaders module cleanup - move `load_module` to `python.d.plugin` - use `load_config` in unbound module instead of YamlOrderedLoad class - remove all classes from `loaders.py` - no longer used ##### Component Name [`collectors/python.d.plugin/python_modules/bases/loaders`](https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/python_modules/bases/loaders.py) ##### Additional Information
2019-03-10SimpleService cleanup: do not inherit from OldVersionCompatibility (#5594)Ilya Mashchenko
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary python SimpleService cleanup 1 - remove OldVersionCompatibility ##### Component Name [`collectors/python.d.plugin/python_modules/bases/FrameworkServices/SimpleService`](collectors/python.d.plugin/python_modules/bases/FrameworkServices) ##### Additional Information it is dead code, no longer supported
2019-03-07python.d.plugin: use separate process for initial module checking (#5552)Ilya Mashchenko
##### Summary This PR adds (major) changes only to `python.d.plugin` file. Fixes: #5525 `pyhton.d.plugin` imports a lot of additional packages during initial module initialization/job creating/checking and there is no way to unimport them, even if they arn't needed. It consumes relatively a lot of ram. ___ Memory utilization comparing before/after the PR (one job `example` module, py3.7.2): > 21.1 => 8.8 MiB ![screenshot_20190305_111837](https://user-images.githubusercontent.com/22274335/53791147-c27a6e00-3f39-11e9-8eaf-8ac3809a3b6e.png) ##### Component Name [`collectors/python.d.plugin`](https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/python.d.plugin.in) ##### Additional Information This PR adds separate process for initial module checking. Logic: - main process spawns checker process - checker process loads every module, loads module config, creates jobs and runs job.check() for every job, if check success it adds the job to the list. - checker process returns list of modules and jobs. - main process loads only active modules, etc.
2019-02-20fix #5430 - LogService._get_raw_data under python3 fails on undecodable data ↵Adam Pardyl
(#5431) * Fix LogService._get_raw_data under python3 * Move python version check to init * Mark open_args as private
2019-02-05fix some python codacy errors (#5331)Ilya Mashchenko
* debug error instead of continue * portcheck: remove unused variable * postgres: remove unused variable * SocketService: log error on disconnect instead of pass * SocketService: add ssl_version opt to ssl.wrap_socket call * minor
2019-02-05Remove deprecated API call (#5326)Andre Lehmann
Using `with connection as cursor` has been deprecated in 2017 and now with 1.4.0 the API call has been removed. Therefore the cursor needs to be created and closed "manually"
2019-01-02UrlService dont respect Retry-After header by default (#5082)Ilya Mashchenko
* disable respecting retry_after_header * fix
2018-12-07python.d.plugin update (#4936)Ilya Mashchenko
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Fix: #4756 `python.d.plugin` updates: * remove `retries` option * make `penalty` configurable (enabled by default, max is 10 minutes) > penalty indicates whether to apply penalty to update_every in case of failures. > Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes. > penalty: yes ##### Component Name `python.d.plugin` ##### Additional Information
2018-11-26python.d: use real time for calc sinceLast (#4720)Ilya Mashchenko
* use real time clock to calc since last update * python.d: remove unused attr from RuntimeCounters
2018-11-21Fix typo and py2 compatibility issue. (#4697)Austin S. Hemmelgarn
PR #4667 accidentally introduced a py2 compatability issue and a typo, both of which break the sensors module. This fixes both.
2018-11-15Update lm_sensors and catch specific errors. (#4667)Austin S. Hemmelgarn
This updates our copy of the libsensors Python bindings to the most recent upstream copy, which provides proper errors instead of just raising bare Exceptions, and updates our code to catch those errors instead of catching bare exceptions.
2018-10-19remove unused variables (#4437)Paweł Krupa
##### Summary <!--- Describe the change below, including rationale and design decisions --> Removing variables which are not used in Python code <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> ##### Component Name <!--- Write the short name of the module or plugin below --> - python.d.plugin - portcheck python module - postgres python module ##### Additional Information <!--- Include additional information to help people understand the change here --> <!--- A step-by-step reproduction of the problem is helpful if there is no related issue --> <!--- Paste log output below, e.g. before and after your change --> ```paste below ```
2018-10-15modularized all source code (#4391)Costa Tsaousis
* modularized all external plugins * added README.md in plugins * fixed title * fixed typo * relative link to external plugins * external plugins configuration README * added plugins link * remove plugins link * plugin names are links * added links to external plugins * removed unecessary spacing * list to table * added language * fixed typo * list to table on internal plugins * added more documentation to internal plugins * moved python, node, and bash code and configs into the external plugins * added statsd README * fix bug with corrupting config.h every 2nd compilation * moved all config files together with their code * more documentation * diskspace info * fixed broken links in apps.plugin * added backends docs * updated plugins readme * move nc-backend.sh to backends * created daemon directory * moved all code outside src/ * fixed readme identation * renamed plugins.d.plugin to plugins.d * updated readme * removed linux- from linux plugins * updated readme * updated readme * updated readme * updated readme * updated readme * updated readme * fixed README.md links * fixed netdata tree links * updated codacy, codeclimate and lgtm excluded paths * update CMakeLists.txt * updated automake options at top directory * libnetdata slit into directories * updated READMEs * updated READMEs * updated ARL docs * updated ARL docs * moved /plugins to /collectors * moved all external plugins outside plugins.d * updated codacy, codeclimate, lgtm * updated README * updated url * updated readme * updated readme * updated readme * updated readme * moved api and web into webserver * web/api web/gui web/server * modularized webserver * removed web/gui/version.txt