# README
mysqlrouter-exporter
Usage
- Download binary from release.
- Move to /usr/local/bin/
- Add systemd script.
- Start
[Unit]
Description=mysqlrouter-exporter
Documentation=https://github.com/rluisr/mysqlrouter-exporter
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/mysqlrouter_exporter --url http://mysqlrouter.luis.local --user luis --pass luis
[Install]
WantedBy=multi-user.target
You must set --url
, --user
and --pass
.
Default listen port is 49152
.
If want to change it, use --port
flag.
Prometheus configuration
scrape_configs:
- job_name: 'mysqlrouter'
static_configs:
- targets:
- mysqlrouter01.luis.local:49152
Grafana Dashboard
available here.