{"id":160,"date":"2016-09-20T12:33:54","date_gmt":"2016-09-20T09:33:54","guid":{"rendered":"https:\/\/fleio.com\/blog\/?p=160"},"modified":"2016-09-20T12:33:54","modified_gmt":"2016-09-20T09:33:54","slug":"openstack-billing-features-fleio-1-0-preview-part-2-of-2","status":"publish","type":"post","link":"https:\/\/fleio.com\/blog\/2016\/09\/20\/openstack-billing-features-fleio-1-0-preview-part-2-of-2\/","title":{"rendered":"OpenStack billing features &#8211; Fleio 1.0 preview (part 2 of 2)"},"content":{"rendered":"<p>You saw the <a href=\"https:\/\/fleio.com\/blog\/2016\/08\/17\/openstack-billing-features-fleio-1-0-preview-part-1-of-2\/\">billing options you have for\u00a0block devices and disk images<\/a>. Today I&#8217;d like to show you the OpenStack billing features for compute instances and network traffic.<\/p>\n<p>Fleio can apply\u00a0a cost to compute instances based on multiple attributes:<\/p>\n<ul>\n<li>existence over time (of instance)<\/li>\n<li>vCPUs: number of virtual CPU cores<\/li>\n<li>root_gb: root file system size in GB<\/li>\n<li>memory_mb: the instance memory (RAM)<\/li>\n<li>instance_type: the name of the flavor (eg: m1.tiny)<\/li>\n<li>availability_zone: the availability zone of the instance<\/li>\n<li>cell_name: the name of the cell where the instance resides<\/li>\n<li>any other metadata attribute<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>And you can select one of the following time units: second, minute, hour or billing cycle (like a whole month).<\/p>\n<p><strong>Filters<\/strong> can be applied to a rule on many attributes: availability zone, instance type (or flavor), operating system, state and many others. If the filter conditions are true\u00a0the pricing rule applies, otherwise it is skipped. The most common type of pricing rule definition\u00a0is <span style=\"text-decoration: underline;\">instance_type equals &#8220;m1.tiny&#8221;<\/span>.<\/p>\n<p>Pricing rules are not exclusive. All pricing rules that have the filter conditions satisfied\u00a0are applied and the all the resulting amounts\u00a0are added. This means you can have any number of pricing rules applied for the same instance. Keep this in mind when creating pricing rules.<\/p>\n<p>You can add further <strong>price modifiers<\/strong>\u00a0to a pricing rule. The same attributes available for filters are applicable\u00a0to price modifiers as well. If the price modifier&#8217;s condition is met the\u00a0amount is added to the base price.<\/p>\n<p>Here&#8217;s how a price modifier looks like if you want to\u00a0bill 0.01 \u20ac\u00a0per hour for the Windows license:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-166\" src=\"https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/windows-price-modifier-300x276.png\" alt=\"windows-price-modifier\" width=\"400\" height=\"368\" srcset=\"https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/windows-price-modifier-300x276.png 300w, https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/windows-price-modifier.png 610w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>And here&#8217;s an eye candy feature:<\/p>\n<p>You can see a live\u00a0cost estimate in the\u00a0bottom-right corner\u00a0while selecting different options in create instance form.<\/p>\n<p><iframe loading=\"lazy\" width=\"788\" height=\"443\" src=\"https:\/\/www.youtube.com\/embed\/BwKd-hG7s1g?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>Network pricing rule<\/h2>\n<p>Network is measured per OpenStack project and can have a flat price per GB or tiered pricing, <a href=\"https:\/\/aws.amazon.com\/ec2\/pricing\/#Data_Transfer\">like Amazon<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-191 size-full\" src=\"https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/network-pricing.png\" alt=\"network-pricing\" width=\"647\" height=\"491\" srcset=\"https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/network-pricing.png 647w, https:\/\/fleio.com\/blog\/wp-content\/uploads\/2016\/09\/network-pricing-300x228.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>Besides network traffic metrics, Fleio actually supports all the metrics present in Gnocchi like disk read\/write IOPS, floating IPs, CPU\u00a0usage and others.<\/p>\n<p>A pricing rule uses the currency of the pricing plan. A\u00a0pricing plan has\u00a0several pricing rules and there can be many\u00a0pricing plans.<\/p>\n<p>What other billing options would you like to have? Leave us a comment below.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You saw the billing options you have for\u00a0block devices and disk images. Today I&#8217;d like to show you the OpenStack billing features for compute instances and network traffic. Fleio can apply\u00a0a cost to compute instances based on multiple attributes: existence over time (of instance) vCPUs: number of virtual CPU cores root_gb: root file system size [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15,9],"tags":[20,2,10],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-billing","category-openstack","category-preview","tag-billing","tag-openstack","tag-openstack-billing"],"_links":{"self":[{"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":40,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fleio.com\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}