The Domino FinOps API allow aggregation only by labels of Domino domain objects, not by arbitrary Kubernetes objects like clusters.
Use the Domino Cost API to access FinOps features.
Note
|
Only SysAdmins can use the /allocation and /asset API paths.
|
Today’s cost aggregated by cluster
curl -H "X-Domino-Api-Key: $API_KEY" -H "Accept: application/json" https://$DOMAIN/api/cost/v1/allocation -d window=today -d aggregate=cluster -G
Today’s cost aggregated by organization
curl -H "X-Domino-Api-Key: $API_KEY" -H "Accept: application/json" https://$DOMAIN/api/cost/v1/allocation -d window=today -d aggregate=label:dominodatalab.com/organization-name -G
Today’s cost aggregated by Project
curl -H "X-Domino-Api-Key: $API_KEY" -H "Accept: application/json" https://$DOMAIN/api/cost/v1/allocation -d window=today -d aggregate=label:dominodatalab.com/project-id -G
curl -H "X-Domino-Api-Key: $API_KEY" -H "Accept: application/json" https://$DOMAIN/api/cost/v1/allocation -d window=today -d aggregate=label:dominodatalab.com/billing-tag -G
There are a number of field options available with FinOps APIs. The window
query parameter is required. For details on the window
values you can use, please check FinOps’s window documentation.
Field | Description |
---|---|
| Name of each relevant Kubernetes concept described by the allocation, delimited by slashes, e.g. |
| Map of name-to-value for all relevant property fields, including cluster, node, namespace, controller, controllerKind, pod, container, labels, annotation, etc. Note: Prometheus only supports underscores ( |
| Period of time over which the allocation is defined. |
| Precise starting time of the allocation. By definition must be within the window. |
| Precise ending time of the allocation. By definition must be within the window. |
| Number of minutes running; i.e. the minutes from start until end. |
| Total cumulative cost. |
| Object with fields |
Note
|
The trial version of Domino FinOps only supports up to 90 days of data storage. To use a window parameter of more than 90 days (90d ), contact your Domino representative.
|
See other ways Domino FinOps can help you optimize the performance of your projects while managing cloud expenditures:
-
Prevent overspending on compute and storage by setting budgets and sending alerts to team members approaching their limits.
-
Optimize Dataset storage usage to reduce cloud storage costs.