From 2f537b0a43c5fb6a11aafad6eba1e8d92cbc2893 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 15 Mar 2026 11:19:34 +0100 Subject: metric: Update to pyproject and version tags Updates the project to use a pyproject.toml file and use setuptools_scm for versioning. Simplifies directory structure. Signed-off-by: Dimitri Staessens --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 84a3ee1..4cc05eb 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,7 @@ More features will be added over time. ## Requirements: -InfluxDB 0SS 2.0, https://docs.influxdata.com/influxdb/v2.0/ - -python influxdb-client, install via - -``` -pip install 'influxdb-client[ciso]' -``` +InfluxDB OSS 2.0, https://docs.influxdata.com/influxdb/v2.0/ ## Optional requirements: @@ -45,14 +39,22 @@ select Dashboards -> Manage -> Import and then either upload the json file from this repository in -dashboards-grafana/general.json +dashboards/general.json or copy the contents of that file to the "Import via panel json" textbox and click "Load". ## Run the exporter: -Clone this repository and go to the pyExporter directory. +Clone this repository. + +Create and activate a virtual environment and install the dependencies: + +``` +python -m venv venv +source venv/bin/activate +pip install . +``` Edit the config.ini.example file and fill out the InfluxDB information (token, org). Save it as config.ini. @@ -60,6 +62,5 @@ information (token, org). Save it as config.ini. and run oexport.py ``` -cd exporters-influxdb/pyExporter/ python oexport.py ``` -- cgit v1.2.3