diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-03-15 11:19:34 +0100 |
|---|---|---|
| committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-03-15 11:23:26 +0100 |
| commit | 2f537b0a43c5fb6a11aafad6eba1e8d92cbc2893 (patch) | |
| tree | 70eb0e9da78d82116aec5cce3f928d2a77986a13 | |
| parent | 4afcd8732cbb33da63f665e7f3e0e4e9fe524e1e (diff) | |
| download | ouroboros-metrics-0.23.0.tar.gz ouroboros-metrics-0.23.0.zip | |
metric: Update to pyproject and version tags0.23.0
Updates the project to use a pyproject.toml file and use
setuptools_scm for versioning. Simplifies directory structure.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | README.md | 21 | ||||
| -rw-r--r-- | config.ini.example (renamed from exporters-influxdb/pyExporter/config.ini.example) | 0 | ||||
| -rw-r--r-- | dashboards/general.json (renamed from dashboards-grafana/general.json) | 0 | ||||
| -rwxr-xr-x | oexport.py (renamed from exporters-influxdb/pyExporter/oexport.py) | 0 | ||||
| -rw-r--r-- | pyproject.toml | 16 |
6 files changed, 29 insertions, 11 deletions
@@ -1,3 +1,4 @@ *~ *# -./exporters-influxdb/pyExporter/config.ini
\ No newline at end of file +./config.ini +./venv/ @@ -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 ``` diff --git a/exporters-influxdb/pyExporter/config.ini.example b/config.ini.example index f2656f7..f2656f7 100644 --- a/exporters-influxdb/pyExporter/config.ini.example +++ b/config.ini.example diff --git a/dashboards-grafana/general.json b/dashboards/general.json index 5cbc4ea..5cbc4ea 100644 --- a/dashboards-grafana/general.json +++ b/dashboards/general.json diff --git a/exporters-influxdb/pyExporter/oexport.py b/oexport.py index 2f38e2e..2f38e2e 100755 --- a/exporters-influxdb/pyExporter/oexport.py +++ b/oexport.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..47072f4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "ouroboros-metrics" +dynamic = ["version"] +dependencies = [ + "influxdb-client[ciso]", + "pytz", +] + +[tool.setuptools] +script-files = ["oexport.py"] + +[build-system] +requires = ["setuptools>=64", "setuptools_scm>=8"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] |
