mirror of https://github.com/nicolargo/glances
Use triple quotation marks for epilog
parent
f5bbd9ed4d
commit
fef6f8a860
|
@ -49,35 +49,34 @@ class GlancesMain(object):
|
||||||
username = "glances"
|
username = "glances"
|
||||||
password = ""
|
password = ""
|
||||||
|
|
||||||
# Exemple of use
|
# Examples of use
|
||||||
example_of_use = "\
|
example_of_use = """
|
||||||
Examples of use:\n\
|
Examples of use:
|
||||||
\n\
|
Monitor local machine (standalone mode):
|
||||||
Monitor local machine (standalone mode):\n\
|
$ glances
|
||||||
$ glances\n\
|
|
||||||
\n\
|
Monitor local machine with the Web interface (Web UI):
|
||||||
Monitor local machine with the Web interface (Web UI):\n\
|
$ glances -w
|
||||||
$ glances -w\n\
|
Glances web server started on http://0.0.0.0:61208/
|
||||||
Glances web server started on http://0.0.0.0:61208/\n\
|
|
||||||
\n\
|
Monitor local machine and export stats to a CSV file (standalone mode):
|
||||||
Monitor local machine and export stats to a CSV file (standalone mode):\n\
|
$ glances --export-csv /tmp/glances.csv
|
||||||
$ glances --export-csv /tmp/glances.csv\n\
|
|
||||||
\n\
|
Monitor local machine and export stats to a InfluxDB server with 5s refresh time (standalone mode):
|
||||||
Monitor local machine and export stats to a InfluxDB server with 5s refresh time (standalone mode):\n\
|
$ glances -t 5 --export-influxdb
|
||||||
$ glances -t 5 --export-influxdb\n\
|
|
||||||
\n\
|
Start a Glances server (server mode):
|
||||||
Start a Glances server (server mode):\n\
|
$ glances -s
|
||||||
$ glances -s\n\
|
|
||||||
\n\
|
Connect Glances to a Glances server (client mode):
|
||||||
Connect Glances to a Glances server (client mode):\n\
|
$ glances -c <ip_server>
|
||||||
$ glances -c <ip_server>\n\
|
|
||||||
\n\
|
Connect Glances to a Glances server and export stats to a StatsD server (client mode):
|
||||||
Connect Glances to a Glances server and export stats to a StatsD server (client mode):\n\
|
$ glances -c <ip_server> --export-statsd
|
||||||
$ glances -c <ip_server> --export-statsd\n\
|
|
||||||
\n\
|
Start the client browser (browser mode):
|
||||||
Start the client browser (browser mode):\n\
|
$ glances --browser
|
||||||
$ glances --browser\n\
|
"""
|
||||||
"
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Manage the command line arguments."""
|
"""Manage the command line arguments."""
|
||||||
|
|
Loading…
Reference in New Issue