Skip to Main Content
Cumulocity IoT Feedback Portal
Status Future consideration
Created by Christoph Marschall
Created on Feb 3, 2023

Platform API to receive Datahub billing metrics

API's which report individual Microservice stats like /tenant/statistics/Summary (Link) should also provide custom Microservice metrics, as a child of the node /resources/usedBy/



Datahub introduces additional metrics required for billing, most importantly Offloading volume, Billed Offloading Volume, Query Volume, Billed Query Volume.


Those metrics are visible in the manifest of the Datahub microservice and are also queried by the frontend when checking statistics.


However, when the parent tenant wants to charge a child-tenant based on those metrics, there is currently no documented API to get this information.


Ideally, API's which report individual Microservice stats like /tenant/statistics/Summary (Link) should also provide custom Microservice metrics, as a child of the node /resources/usedBy/


Without such an API, it seems it's currently not possible to offer Datahub to a customer who wants to charge the usage of it to his sub-tenants in the same way he charges them for other resources (Storage, device-count, API-calls, MS CPU/Memory,...)

  • Attach files
  • Admin
    Tal Dunne
    Reply
    |
    Mar 6, 2023

    We have received this, understood the use case, and are taking it forward into discussions on how we can develop it. It will likely be part of our re-factoring of the Usage Statistics APIs. I responded to Christoph directly via email as well.