diff --git a/conf/glances.conf b/conf/glances.conf index b1e720a4..8f3ef4ce 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -177,3 +177,10 @@ db=glances host=localhost port=8125 #prefix=glances + +[rabbitmq] +host=localhost +port=5672 +user=glances +password=glances +queue=glances_queue diff --git a/glances/core/glances_main.py b/glances/core/glances_main.py index 8bdc7c18..9637df82 100644 --- a/glances/core/glances_main.py +++ b/glances/core/glances_main.py @@ -139,6 +139,7 @@ Start the client browser (browser mode):\n\ dest='export_influxdb', help=_('export stats to an InfluxDB server (need InfluDB lib)')) parser.add_argument('--export-statsd', action='store_true', default=False, dest='export_statsd', help=_('export stats to a Statsd server (need StatsD lib)')) + parser.add_argument('--export-rabbitmq', action='store_true', default=False, dest='export_rabbitmq', help=_('export stats to rabbitmq broker (need pika lib)')) # Client/Server option parser.add_argument('-c', '--client', dest='client', help=_('connect to a Glances server by IPv4/IPv6 address or hostname'))