@app.route('/metrics', defaults={'env': app.config['DEFAULT_ENVIRONMENT']})
@app.route('/<env>/metrics')
def metrics(env):
    envs = environments()
    check_env(env, envs)

    metrics = get_or_abort(puppetdb._query, 'mbean')
    for key, value in metrics.items():
        metrics[key] = value.split('/')[2]
    return render_template('metrics.html',
        metrics=sorted(metrics.items()),
        envs=envs,
        current_env=env)
Lists all available metrics that PuppetDB is aware of.
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/metrics