SeaweedFS uses Prometheus to store the metrics and Grafana to visualize them. SeaweedFS publishes metrics to Prometheus Push Gateway, and the gateway pass along to the Prometheus server.
Master | Volume Server | Filer => Prometheus Push Gateway => Prometheus Server => Grafana
Note: Setting Prometheus, push gateway, and Grafana can be simplified with this https://github.com/evnsio/prom-stack
Configuration
Just add a metrics address to weed master
or weed server
command line options. If you have multiple masters, please add it to all the master command line options.
weed master -metrics.address=<prometheus_gateway_host_name>:<prometheus_gateway_port>
# example
weed master -metrics.address=localhost:9091
weed server -metrics.address=<prometheus_gateway_host_name>:<prometheus_gateway_port>
# example
weed server -metrics.address=localhost:9091
The SeaweedFS filer or volume servers will read this metrics configuration from the master, and report the metrics directly to the Prometheus Gateway.
Dashboard
The dashboard is shared at https://grafana.com/dashboards/10423
If you modify the dashboard, please share your revisions.