/influxdb-python

Python client for InfluxDB

Primary LanguagePythonMIT LicenseMIT

InfluxDB-Python (With Relay)

InfluxDB-Python is a client for interacting with InfluxDB_. The main source of the library is found at https://github.com/influxdata/influxdb-python.

Development of this library is maintained by and the relay features was edited by me:

Github ID URL
@aviau (https://github.com/aviau)
@xginn8 (https://github.com/xginn8)
@sebito91 (https://github.com/sebito91)

InfluxDB is an open-source distributed time series database, find more about InfluxDB_ at https://docs.influxdata.com/influxdb/latest

Simply clone the library and enter the folder and execute pip install .

Currently, all the functions edited causes the whole library to be workable only with the influxdb-relay architecture by https://github.com/strike-team/influxdb-relay which is highly maintained by the developers. They added a /admin endpoint in order to create database (for e.g) to be used in all 3 instances rather than simply using for just 1 instance like the default library assumes.

With this, I edited the library requests to call to the /admin endpoint instead to do these administrative tasks. Everything remains the same, you can refer to the docs by the influxdata team that created the influxdb-python files in regards to each individual APIs, for the relay calls, simply add relay_create_database for example to create the database for the instances that you have set up.

Main functions that have been added for the relay:

  1. create_database --> relay_create_database
  2. drop_database --> relay_drop_database
  3. create_users --> relay_create_user
  4. drop_user --> relay_drop_user
  5. drop_measurement --> relay_drop_measurement
  6. create_retention_policy --> relay_create_retention_policy
  7. alter_retention_policy --> relay_alter_retention_policy
  8. drop_retention_policy --> relay_drop_retention_policy
  9. set_user_password --> relay_set_user_password
  10. delete_series --> relay_delete_series
  11. grant_admin_privileges --> relay_grant_admin_privileges
  12. revoke_admin_privileges --> relay_revoke_admin_privileges
  13. grant_privilege --> relay_grant_privilege
  14. revoke_privilege --> relay_revoke_privilege
  15. create_continuous_query --> relay_create_continuous_query
  16. drop_continuous_query --> relay_drop_continuous_query