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.
Sebastian Denz
5506d90c85
|
4 years ago | |
---|---|---|
cmd | 4 years ago | |
shared/wsjtx | 4 years ago | |
Dockerfile | 4 years ago | |
README.md | 4 years ago | |
deploy.sh | 4 years ago | |
go.mod | 4 years ago | |
go.sum | 4 years ago | |
wsjtx_all_txt.sql | 4 years ago |
README.md
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