Ouroboros Metrics: Difference between revisions

From Ouroboros
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
Ouroboros version >= 0.18.3
Ouroboros version >= 0.18.3


[https://docs.influxdata.com/influxdb/v2.0/ |InfluxDB OSS 2.0]
[https://docs.influxdata.com/influxdb/v2.0/ InfluxDB OSS 2.0]


python influxdb-client, install via
python influxdb-client, install via
Line 18: Line 18:
pip install 'influxdb-client[ciso]'
pip install 'influxdb-client[ciso]'
</syntaxhighlight>
</syntaxhighlight>
It is highly recommended to install [https://grafana.com/ grafana] for visualization.
== Get the exporter ==
<syntaxhighlight lang="bash">
git clone https://ouroboros.rocks/git/ouroboros-metrics
cd ouroboros-metrics
cd exporters-influxdb/pyExporter/
</syntaxhighlight>
Edit the config.ini.example file and fill out the InfluxDB information (token, org).
<syntaxhighlight lang="toml">
[influx2]
url=http://localhost:8086
org=<your-org>
token=<your-token>
timeout=6000
verify_ssl=False
</syntaxhighlight>
Save it as config.ini.
== Setup ==
Install and run InfluxDB and create a bucket in InfluxDB for exporting Ouroboros metrics, and a token for writing to that bucket. Consult the [https://docs.influxdata.com/influxdb/v2.0/get-started/#set-up-influxdb InfluxDB documentation] on how to do this.
To use grafana, [https://grafana.com/grafana/download https://grafana.com/docs/grafana/latest/?pg=graf-resources&plcmt=get-started install and run grafana open source].
Go to the grafana UI (usually [http://localhost:3000]) and set up InfluxDB as your datasource: Go to Configuration -> Datasources -> Add datasource and select InfluxDB Set “flux” as the Query Language, and under “InfluxDB Details” set your Organization as in InfluxDB and set the copy/paste the token for the bucket to the Token field.
To add the Ouroboros dashboard, select Dashboards -> Manage -> Import
and then either upload the json file from the metrics repository in
dashboards-grafana/general.json
or copy the contents of that file to the “Import via panel json” textbox and click “Load”.

Revision as of 19:03, 7 June 2022

Under contruction This page is under construction  

A collection of observability tools for exporting and visualising metrics collected from Ouroboros.

Currently has one very simple exporter for InfluxDB, and provides additional visualization via grafana.

More features will be added over time.

Requirements

Ouroboros version >= 0.18.3

InfluxDB OSS 2.0

python influxdb-client, install via

pip install 'influxdb-client[ciso]'

It is highly recommended to install grafana for visualization.


Get the exporter

git clone https://ouroboros.rocks/git/ouroboros-metrics
cd ouroboros-metrics
cd exporters-influxdb/pyExporter/

Edit the config.ini.example file and fill out the InfluxDB information (token, org).

[influx2]
url=http://localhost:8086
org=<your-org>
token=<your-token>
timeout=6000
verify_ssl=False

Save it as config.ini.




Setup

Install and run InfluxDB and create a bucket in InfluxDB for exporting Ouroboros metrics, and a token for writing to that bucket. Consult the InfluxDB documentation on how to do this.

To use grafana, https://grafana.com/docs/grafana/latest/?pg=graf-resources&plcmt=get-started install and run grafana open source.

Go to the grafana UI (usually [1]) and set up InfluxDB as your datasource: Go to Configuration -> Datasources -> Add datasource and select InfluxDB Set “flux” as the Query Language, and under “InfluxDB Details” set your Organization as in InfluxDB and set the copy/paste the token for the bucket to the Token field.

To add the Ouroboros dashboard, select Dashboards -> Manage -> Import

and then either upload the json file from the metrics repository in

dashboards-grafana/general.json

or copy the contents of that file to the “Import via panel json” textbox and click “Load”.