move graph builder out of telemetry into telegraph