mirror of https://github.com/nicolargo/glances.git
Prometheus integration broken with latest prometheus_client #1397
This commit is contained in:
parent
7edb99923a
commit
bfcf212c2c
1
NEWS
1
NEWS
|
|
@ -25,6 +25,7 @@ Bugs corrected:
|
|||
* Getting an error when running with prometheus exporter #1469
|
||||
* Stack trace when starts Glances on CentOS #1470
|
||||
* UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' - Raspbian stretch #1483
|
||||
* Prometheus integration broken with latest prometheus_client #1397
|
||||
|
||||
Others:
|
||||
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ prefix=G
|
|||
host=localhost
|
||||
port=9091
|
||||
#prefix=glances
|
||||
labels=system:`uname -s`
|
||||
labels=src:glances
|
||||
|
||||
[restful]
|
||||
# Configuration for the --export RESTful option
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ class Export(GlancesExport):
|
|||
|
||||
# Load the Prometheus configuration file section
|
||||
self.export_enable = self.load_conf('prometheus',
|
||||
mandatories=['host', 'port'],
|
||||
options=['prefix', 'labels'])
|
||||
mandatories=['host', 'port', 'labels'],
|
||||
options=['prefix'])
|
||||
if not self.export_enable:
|
||||
sys.exit(2)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue