Merge pull request #2088 from dbrennand/docs/prometheus-exporter-container-usage

Add note about `host` for Prometheus exporter in a container
pull/2096/head
Nicolas Hennion 2022-07-15 10:07:48 +02:00 committed by GitHub
commit ddd91be318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@ listening on <host:port> (define in the Glances configuration file).
prefix=glances
labels=src:glances
Note: you can use dynamc fields for the label (ex: labels=system:`uname -s`)
.. note::
When running Glances in a container, set ``host=0.0.0.0`` in the Glances configuration file.
.. note::
You can use dynamic fields for the label (ex: labels=system:`uname -s`)
and run Glances with: