Version 1

    Here is a SQL example for data in and out of datacenter (total) for select interfaces.
    you will have to tweak, I'm sure, but example none the less.