You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
4 years ago
|
# wsjtx-exporter
|
||
|
|
||
|
follows WSJTX-X ALL.TXT file to store entries in mysql and export metrics for prometheus.
|
||
|
|
||
|
parameters:
|
||
|
```
|
||
|
Usage of go/bin/wsjtx-exporter:
|
||
|
-db string
|
||
|
db name (default "digimode_stats")
|
||
|
-dbhost string
|
||
|
name/ip of mysql host (default "db")
|
||
|
-dbpass string
|
||
|
mysql password (default "secret")
|
||
|
-dbtable string
|
||
|
mysql table name (default "wsjtx_all_txt")
|
||
|
-dbuser string
|
||
|
mysql username (default "wsjtx")
|
||
|
-metricpath string
|
||
|
path for prometheus metric endpoint (default "/metrics")
|
||
|
-mysql
|
||
|
activate mysql exporter
|
||
|
-pathin string
|
||
|
path to WSJT-X ALL.TXT (default "/wsjtx/ALL.TXT")
|
||
|
-port int
|
||
|
port for prometheus metric endpoint (default 2112)
|
||
|
-prometheus
|
||
|
activate prometheus exporter
|
||
|
-station string
|
||
|
your callsign or wsjtx instance identifier (default "localstation")
|
||
|
-trace
|
||
|
log almost everything
|
||
|
```
|
||
|
|
||
|
## systemd user unit for linux
|
||
|
|
||
|
create ~/.config/systemd/user/wsjtx-exporter.service and adapt parameters to your needs!
|
||
|
|
||
|
~/.config/systemd/user/wsjtx-exporter.service:
|
||
|
```
|
||
|
[Unit]
|
||
|
Description=WSJT-X 'ALL.TXT' prometheues exporter
|
||
|
|
||
|
[Service]
|
||
|
Restart=always
|
||
|
ExecStart=%h/go/bin/wsjtx-exporter -mysql -prometheus -dbhost 10.0.73.1 -dbuser dl3sd -dbpass tester -station DL3SD -pathin %h/.local/share/WSJT-X/ALL.TXT -trace
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|
||
|
```
|
||
|
|
||
|
activate:
|
||
|
```
|
||
|
systemctl --user daemon-reload
|
||
|
systemctl --user enable wsjtx-exporter.service
|
||
|
systemctl --user start wsjtx-exporter.service
|
||
|
```
|