Updated System Metrics (markdown)

Chris Lu 2019-06-27 13:01:03 -07:00
parent 9db45835f3
commit 9c9e524c5b

@ -1,4 +1,4 @@
SeaweedFS publishes metrics to Prometheus Gateway. SeaweedFS uses [Prometheus](https://prometheus.io/) to store the metrics and [Grafana](https://grafana.com/grafana) to visualize them. SeaweedFS publishes metrics to [Prometheus Gateway](https://github.com/prometheus/pushgateway), and the gateway pass along to the Prometheus server.
Master | Volume Server | Filer => Prometheus Gateway => Prometheus Server => Grafana Master | Volume Server | Filer => Prometheus Gateway => Prometheus Server => Grafana
@ -7,9 +7,9 @@ Master | Volume Server | Filer => Prometheus Gateway => Prometheus Server => Gra
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. 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=localhost:9091 weed master -metrics.address=<prometheus_gateway_host_name>:<prometheus_gateway_port>
weed server -metrics.address=localhost:9091 weed server -metrics.address=<prometheus_gateway_host_name>:<prometheus_gateway_port>
``` ```
The SeaweedFS filer or volume servers will read this metrics configuration from the master, and report the metrics directly to the Prometheus Gateway. The SeaweedFS filer or volume servers will read this metrics configuration from the master, and report the metrics directly to the Prometheus Gateway.