Project

General

Profile

Monitoring via Grafana » History » Version 1

manawyrm, 04/19/2022 08:52 PM

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