Browse Source

Update monitoring.rst

fixed the doc on how to change flower port.
Added information on how to connect to a distant broker.

Informations found on https://github.com/mher/flower#usage,
I thought it was useful to have it in this doc too,
as it is quite necessary for the flower use.
Guillaume Gendre 12 năm trước cách đây
mục cha
commit
fb77402ee4
1 tập tin đã thay đổi với 19 bổ sung2 xóa
  1. 19 2
      docs/userguide/monitoring.rst

+ 19 - 2
docs/userguide/monitoring.rst

@@ -234,11 +234,28 @@ Running the flower command will start a web-server that you can visit:
 
     $ celery flower
 
-The default port is http://localhost:5555, but you can change this using the
-:option:`--port` argument::
+The default port is http://localhost:5555, but you can change this using the `--port` argument:
+
+.. code-block:: bash
+
+    $ celery flower --port=5555
+
+Broker URL can also be passed through the `--broker` argument :
+
+.. code-block:: bash
+
+    $ celery flower --broker=amqp://guest:guest@localhost:5672//
+    or
+    $ celery flower --broker=redis://guest:guest@localhost:6379/0
+
+Then, you can visit flower in your web browser :
+
+.. code-block:: bash
 
     $ open http://localhost:5555
 
+
+
 .. _monitoring-celeryev:
 
 celery events: Curses Monitor