make tries an int
add /key-metrics endpoint