Skip to content

Commit 30b0453

Browse files
authored
Merge pull request #205 from Helene/internal_stats_fix2
Don't mount the endpoint cherrypy_internal_stats if not enabled
2 parents 4c2d805 + f597942 commit 30b0453

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)