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 years ago
parent
commit
968f026b5f
1 changed files with 19 additions and 2 deletions
  1. 19 2
      docs/userguide/monitoring.rst

+ 19 - 2
docs/userguide/monitoring.rst

@@ -233,11 +233,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