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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

1.5 KiB

wsjtx-exporter

follows WSJTX-X ALL.TXT file to store entries in mysql and export metrics for prometheus.

parameters:

Usage of /home/ixyd/go/bin/wsjtx-exporter:
  -db string
    	db name (default "digimode_stats")
  -host string
    	name/ip of mysql host (default "db")
  -in string
    	path to WSJT-X ALL.TXT (default "/wsjtx/ALL.TXT")
  -metricpath string
    	path for prometheus metric endpoint (default "/metrics")
  -mysql
    	activate mysql exporter
  -pass string
    	mysql password (default "secret")
  -port int
    	port for prometheus metric endpoint (default 2112)
  -prometheus
    	activate prometheus exporter
  -station string
    	your callsign or wsjtx instance identifier (default "localstation")
  -table string
    	mysql table name (default "wsjtx_all_txt")
  -trace
    	log almost everything
  -user string
    	mysql username (default "wsjtx")

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