(request)
Serves the static prometheus metrics from the filesystem.
    It is updated each time the janitor runs
Serves the static prometheus metrics from the filesystem.
    It is updated each time the janitor runs
Serves the static prometheus metrics from the filesystem . It is updated each time the janitor runs
def prometheus_metrics(request):
    """ Serves the static prometheus metrics from the filesystem.
    It is updated each time the janitor runs
    """
    drop_root = request.registry.settings['dropbox_container']
    try:
        return FileResponse(
            os.path.join(drop_root.fs_root, 'metrics'),
            content_type='text/plain')
    except Exception:
        return HTTPNotFound()
def prometheus_metrics ( request ) : drop_root = request . registry . settings [ 'dropbox_container' ] try : return FileResponse ( os . path . join ( drop_root . fs_root , 'metrics' ) , content_type = 'text/plain' ) except Exception : return HTTPNotFound ( )