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

    name = unquote(metric)
    metric = puppetdb.metric(metric)
    return render_template(
        'metric.html',
        name=name,
        metric=sorted(metric.items()),
        envs=envs,
        current_env=env)
Lists all information about the metric of the given name.
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/metric