match graphite's API endpoint better