aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-07-26 17:40:07 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2026-07-26 21:42:41 +0200
commit87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b (patch)
tree2cf32b17e8f54a0edba70132d875209d980937b3 /README.md
parent6cb72c39bd35046c1cbdfde47c462d646b49c078 (diff)
downloadouroboros-metrics-87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b.tar.gz
ouroboros-metrics-87a54c6d624aba3c3e57a363b2dc6bebeb1b8f7b.zip
oexport: Add project.scripts entry pointHEADmaster
Add a script entry point so the correct shebang is set at install and the exporter can be run as `oexport`. Update style and harmonize docstrings. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 16 insertions, 19 deletions
diff --git a/README.md b/README.md
index 394aaf6..a6b5123 100644
--- a/README.md
+++ b/README.md
@@ -3,17 +3,14 @@
A collection of observability tools for exporting and
visualising metrics collected from Ouroboros.
-Currently has one very simple exporter that can push metrics to
-InfluxDB or write them as InfluxDB line protocol to a local file,
-and provides additional visualization via grafana.
-
-More features will be added over time.
+The exporter pushes metrics to InfluxDB or writes them as InfluxDB
+line protocol to a local file, and provides additional visualization
+via grafana.
## Requirements:
-The influxdb-client Python package is always required (used for
-point construction and line protocol serialization in both modes).
-It is installed automatically via `pip install .`
+The influxdb-client Python package is required in both modes. It is
+installed automatically via `pip install .`
InfluxDB OSS 2.0, https://docs.influxdata.com/influxdb/v2.0/
(only required when pushing metrics directly to InfluxDB, not
@@ -68,33 +65,32 @@ pip install .
Edit the config.ini.example file and fill out the InfluxDB
information (token, org). Save it as config.ini.
-Run oexport.py:
+Run oexport:
```
-python oexport.py
+oexport
```
Extra tags can be added to every metric:
```
-python oexport.py --tag env=production --tag region=eu
+oexport --tag env=production --tag region=eu
```
### File mode
-Write metrics as InfluxDB line protocol to a local file instead of
+Write metrics as InfluxDB line protocol to a local file, without
pushing to a running InfluxDB instance. This requires no InfluxDB
connection and no config.ini:
```
-python oexport.py --output-file metrics.lp
+oexport --output-file metrics.lp
```
-Tags can be injected in file mode as well, which is useful for
-stamping metrics with a test name and run identifier:
+Tags can be injected in file mode as well:
```
-python oexport.py --output-file metrics.lp \
+oexport --output-file metrics.lp \
--tag test=oping_unimpaired \
--tag run=20260401_143022
```
@@ -109,9 +105,10 @@ influx write --bucket ouroboros-metrics --file metrics.lp
| Flag | Description |
|---------------------|-------------------------------------------------|
-| `-i, --interval` | Collection interval in milliseconds (default: 1000) |
-| `-b, --bucket` | InfluxDB bucket name (default: ouroboros-metrics) |
-| `-o, --output-file` | Write line protocol to file instead of InfluxDB |
+| `-i, --interval` | FRCT interval, ms (default: 1000) |
+| `--slow-interval` | IPCP/LSDB/DHT/FA/DT interval, ms |
+| `-b, --bucket` | InfluxDB bucket (default: ouroboros-metrics) |
+| `-o, --output-file` | Write InfluxDB line protocol to a file |
| `-t, --tag` | Extra tag as key=value (repeatable) |
| `-c, --config` | Path to config.ini (default: ./config.ini) |
| `--url` | InfluxDB server URL |