MARC: A resource consumption modeling service for self-aware autonomous agents