HPE Developer Community Portal

HPE Onesphere-Introduction to Insights (Cost Analytics)

gowri.m@hpe.com

HPE OneSphere-Introduction to Insights

Introduction

HPE OneSphere is a multi-cloud management platform delivered as a managed service. It provides a unified experience across Hybrid clouds (public & private) and software-defined infrastructure all through a single management console.

HPE OneSphere Insights is a key component of HPE OneSphere and displays cost information about workload deployments on both public and private clouds. For the first release, HPE OneSphere Insights supports AWS (Amazon Web Services) public cloud and VMware based private cloud cost analytics.

This blog details the interpretation of the various costs that are currently shown within HPE OneSphere Insights and also looks at some of the metric APIs that we are using to report these costs

Insight on 'Insights'

cc_donut_chart

A. HPE Private cloud fixed costs for the current month.
B. AWS total costs for the current month.
C. Total cost of AWS and HPE Private cloud fixed costs for the current month.
D. Previous month total cost of AWS and HPE Private cloud fixed costs.
E. The region where HPE Private cloud is deployed.
F. The region where AWS is deployed.

ca_2_updated

A.Total costs of all AWS accounts(payer and member), both enabled and disabled.
B. HPE Private cloud zone fixed costs for the current month.
C. Costs for managed AWS enabled accounts.
D. Costs for deployments in Private cloud.
E. Weighted score of deployed VMs in AWS managed accounts based on CPU Utilization.
F. Weighted score of deployed VMs in HPE Private cloud zones based on CPU and memory utilization.

ca_3_updated

A. Costs of AWS managed disabled accounts.
B. Difference between total private fixed costs and managed costs.
C. Managed costs of all zones enabled in the Private cloud.
D. Cumulative costs of managed deployments (not onboarded member account) and unused private cloud capacity costs.
E. Costs of Private cloud deployments done outside of HPE OneSphere.
F. Deployment costs of onboarded AWS account linked to the project.
G. Costs based on deployments in projects where 'incubation' LOB is associated.
H. Costs based on deployments in projects where 'development' environment is associated.
I. Costs based on deployments in projects where 'gold' tier is associated.
J. Deployment costs for AWS instances takes 24 hours to show it in Insights. This is due to AWS generates the billing once in 24 hours.

ca_4_updated

A. Drill down of any project shows the AWS and Private cloud services costs.

Metrics APIs to fetch the costs:

For all the below rest calls, we have taken the example to show the costs for the February month by giving the periodStart as 2018-02-01 and periodCount as 1.

a) To get the usage costs of all the deployments based on the providers category:

/rest/metrics?name=cost.usage&period=month&periodStart=2018-02-01T00:00:00Z&periodCount=1&category=providers&view=full
cost1

b) To get the usage costs of all the deployments based on the projects category:

/rest/metrics?name=cost.usage&period=month&periodStart=2018-02-01T00%3A00%3A00Z&periodCount=1&category=projects&view=full
cost2

c) To get the usage costs of all deployments based on the projects which is associated to 'Tier' tag key:

/rest/metrics?name=cost.usage&period=month&periodStart=2018-02-01T00%3A00%3A00Z&periodCount=1&category=projects&groupBy=tagKeyUri&query=tagKeyUri+EQ+%2Frest%2Ftag-keys%2Ftier&view=full
cost3

d) To get the total cost of all providers grouped by provider-type:

/rest/metrics?name=cost.total&period=month&periodStart=2018-03-01T00%3A00%3A00Z&periodCount=-2&category=providers&groupBy=providerTypeUri&view=full
cost4

e) To get the managed utilization and the consolidated usage costs of all providers grouped by the provider-type:

/rest/metrics?name=cost.total&name=cost.efficiency&name=cost.usage&period=month&periodStart=2018-02-01T00%3A00%3A00Z&periodCount=1&category=providers&groupBy=providerTypeUri&view=full
cost5

f) To get the usage costs of all deployments based on the projects which is associated to 'environment' tag key:

/rest/metrics?name=cost.usage&period=month&periodStart=2018-02-01T00%3A00%3A00Z&periodCount=1&category=projects&groupBy=tagKeyUri&query=tagKeyUri+EQ+%2Frest%2Ftag-keys%2Fenvironment&view=full
cost6

g) To get the usage costs of all deployments based on the projects which is associated to 'line of business' tag key:

/rest/metrics?name=cost.usage&period=month&periodStart=2018-02-01T00%3A00%3A00Z&periodCount=1&category=projects&groupBy=tagKeyUri&query=tagKeyUri+EQ+%2Frest%2Ftag-keys%2Fline-of-business&view=full
cost7
Slack Logo

Continue the conversation in the HPE Developer Slack community

Join the Community
Github Logo

Visit HPE github Organization and be part of the community

Develop Together

Stay in the loop

Sign up and be the first to know about our development platforms, news and project information as it becomes available.

For more information on how HPE manages, uses and protects your information please refer to HPE Privacy Statement. You can always withdraw or modify your consent to receive marketing communication from HPE. This can be done by using the opt-out and preference mechanism at the bottom of our email marketing communication or by following this link to unsubscribe.