Monitoring via Grafana » History » Version 3
tnt, 04/21/2022 10:41 AM
1 | 2 | manawyrm | h1. Grafana monitoring |
---|---|---|---|
2 | |||
3 | 1 | manawyrm | Grafana can be used to monitor the performance of the network connection and osmo-e1d/icE1usb. |
4 | |||
5 | !{width:80%}grafana.png! |
||
6 | |||
7 | 3 | tnt | When using Grafana + Prometheus, use "statd_exporter":https://github.com/prometheus/statsd_exporter to receive the statsd-UDP-messages and report them to Prometheus. |
8 | 1 | manawyrm | |
9 | * install Grafana + Prometheus |
||
10 | * install statsd_exporter |
||
11 | * configure Prometheus to query statsd_exporter (add to scrape_configs in @/etc/prometheus/prometheus.yml@): |
||
12 | <pre><code class="yaml"> |
||
13 | - job_name: 'statsd_exporter' |
||
14 | scrape_interval: 5s |
||
15 | static_configs: |
||
16 | - targets: ['localhost:9102'] |
||
17 | </code></pre> |
||
18 | * add the following config snippet to @osmo-e1d.cfg@: |
||
19 | <pre> |
||
20 | stats interval 10 |
||
21 | stats reporter statsd |
||
22 | remote-ip 127.0.0.1 |
||
23 | remote-port 9125 |
||
24 | level global |
||
25 | no prefix |
||
26 | enable |
||
27 | </pre>(note the different port) |
||
28 | * add Prometheus as a Data Source in Grafana via GUI |
||
29 | * install dashboard from .json dump below |
||
30 | * (optional) change data sources according to OCTOI remote IP/port |
||
31 | |||
32 | A pre-made dashboard is available: [[https://gist.github.com/Manawyrm/714dc4d21c41d672583022e5329ba1fd]] |