Skip to content

Commit f597942

Browse files
committed
disable endpoint cherrypy_internal_stats if not configured
Signed-off-by: hwassman <[email protected]>
1 parent 4c2d805 commit f597942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/zimonGrafanaIntf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ def main(argv):
342342
}
343343
)
344344
registered_apps.append("Prometheus Exporter Api listening on Prometheus requests")
345-
cherrypy.tree.mount(StatsPage(), '/cherrypy_internal_stats')
345+
if analytics.cherrypy_internal_stats:
346+
cherrypy.tree.mount(StatsPage(), '/cherrypy_internal_stats')
346347
logger.info("%s", MSG['sysStart'].format(sys.version, cherrypy.__version__))
347348

348349
try:

0 commit comments

Comments
 (0)