<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FinOps Archives - Big Data Processing</title>
	<atom:link href="https://bigdataproc.com/category/finops/feed/" rel="self" type="application/rss+xml" />
	<link>https://bigdataproc.com/category/finops/</link>
	<description>Big Data Solution for GCP, AWS, Azure and on-prem</description>
	<lastBuildDate>Thu, 21 Mar 2024 14:09:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Optimize Your GCP Cloud Costs: Identifying Compute Engine Resources for Scale Down</title>
		<link>https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down</link>
					<comments>https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/#respond</comments>
		
		<dc:creator><![CDATA[Gaurang]]></dc:creator>
		<pubDate>Thu, 21 Mar 2024 14:09:26 +0000</pubDate>
				<category><![CDATA[FinOps]]></category>
		<category><![CDATA[GCP]]></category>
		<category><![CDATA[finsops]]></category>
		<category><![CDATA[gcp]]></category>
		<guid isPermaLink="false">https://bigdataproc.com/?p=483</guid>

					<description><![CDATA[<p>n our journey towards optimal cloud cost management, harnessing the power of data becomes paramount. In our latest exploration, we introduce a potent tool: a BigQuery query designed to uncover Compute Engine resources ripe for scale down, paving the way for significant cost savings.</p>
<p>Building upon our previous discussion on centralizing recommendations within BigQuery, this query serves as a cornerstone in our strategy. By focusing on Compute Engine resources and leveraging the insights provided, organizations can make informed decisions to optimize their cloud costs effectively.</p>
<p>Stay tuned as we delve deeper into this powerful tool, unraveling its potential to revolutionize your cloud cost optimization efforts. Every adjustment counts in the pursuit of efficiency and savings, and with our BigQuery-powered approach, the possibilities are limitless.</p>
<div class="more-link-wrapper"><a class="more-link" href="https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/">Continue reading<span class="screen-reader-text">Optimize Your GCP Cloud Costs: Identifying Compute Engine Resources for Scale Down</span></a></div>
<p>The post <a href="https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/">Optimize Your GCP Cloud Costs: Identifying Compute Engine Resources for Scale Down</a> appeared first on <a href="https://bigdataproc.com">Big Data Processing </a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p></p>



<p>In our ongoing exploration of cloud cost optimization, we&#8217;re constantly seeking ways to maximize efficiency and minimize expenditure. In our <a href="https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/">previous blog post</a>, we discussed the importance of centralizing recommendations within BigQuery to streamline cost analysis. If you haven&#8217;t had the chance to read that article, I highly recommend doing so, as it lays the groundwork for the strategy we&#8217;re about to delve into.</p>



<p>Now, let&#8217;s dive into a powerful BigQuery query designed to uncover Compute Engine resources prime for scale down, further enhancing your cost optimization efforts.</p>



<h2 class="wp-block-heading">Unveiling the Query</h2>



<pre class="EnlighterJSRAW" data-enlighter-language="sql" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">SELECT
   r,
  SPLIT(r, "/")[4] AS project_name,
  ARRAY_REVERSE(SPLIT(r, "/"))[0] AS resource_name,
   recommender_subtype as action,
  description,
  primary_impact.cost_projection.cost_in_local_currency. units AS cost_savings_per_month
FROM
  &lt;your_project>.recommendations.recommendations_export,
  UNNEST(target_resources) r
WHERE
  recommender_subtype = "CHANGE_MACHINE_TYPE"
  AND TIMESTAMP_TRUNC(_PARTITIONTIME, DAY) = (
  SELECT
    TIMESTAMP_TRUNC(MAX(_PARTITIONTIME), DAY)
  FROM
    &lt;your_project>.recommendations.recommendations_export)
</pre>



<h2 class="wp-block-heading">Breaking Down the Query</h2>



<ol class="wp-block-list">
<li><strong>SELECT</strong>: The query selects essential fields like the resource and project names, recommendation action, description, and projected cost savings per month.</li>



<li><strong>FROM</strong>: It sources data from <code>recommendations.recommendations_export</code>, extracting target resources using <code>UNNEST</code>.</li>



<li><strong>WHERE</strong>: Filters recommendations to focus solely on those advocating for changing machine types. Additionally, it ensures we&#8217;re working with the latest data partition.</li>
</ol>



<h2 class="wp-block-heading">What It Means for You</h2>



<p>By running this query, you gain insights into Compute Engine resources where adjusting machine types could lead to substantial cost savings. Each recommendation is accompanied by a description and projected monthly savings, empowering you to make informed decisions about scaling down resources without sacrificing performance.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Cost optimization in the cloud isn&#8217;t just about cutting corners; it&#8217;s about strategic resource allocation. With the provided BigQuery query, identifying Compute Engine resources ripe for scale down becomes a streamlined process. Embrace data-driven decision-making to optimize your cloud costs effectively.</p>



<p>Stay tuned for more insights and tips on maximizing the value of your cloud investments!</p>



<p>Remember, when it comes to cloud cost optimization, every adjustment counts. Start uncovering opportunities for savings today with our BigQuery-powered approach. Your bottom line will thank you.</p>



<p>Would you like to dive deeper into any specific aspect or have further queries? Feel free to reach out!</p>
<p>The post <a href="https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/">Optimize Your GCP Cloud Costs: Identifying Compute Engine Resources for Scale Down</a> appeared first on <a href="https://bigdataproc.com">Big Data Processing </a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bigdataproc.com/optimize-your-gcp-cloud-costs-identifying-compute-engine-resources-for-scale-down/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unlocking GCP Cost Optimization Using Recommendation and BigQuery: A FinsOps Guide</title>
		<link>https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide</link>
					<comments>https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/#respond</comments>
		
		<dc:creator><![CDATA[Gaurang]]></dc:creator>
		<pubDate>Tue, 05 Mar 2024 14:56:41 +0000</pubDate>
				<category><![CDATA[FinOps]]></category>
		<category><![CDATA[GCP]]></category>
		<category><![CDATA[finops]]></category>
		<category><![CDATA[gcp]]></category>
		<guid isPermaLink="false">https://bigdataproc.com/?p=466</guid>

					<description><![CDATA[<p>Identify the Idle resources in your GCP cloud using google Recommendation and Bigquery to optimize your cost. </p>
<div class="more-link-wrapper"><a class="more-link" href="https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/">Continue reading<span class="screen-reader-text">Unlocking GCP Cost Optimization Using Recommendation and BigQuery: A FinsOps Guide</span></a></div>
<p>The post <a href="https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/">Unlocking GCP Cost Optimization Using Recommendation and BigQuery: A FinsOps Guide</a> appeared first on <a href="https://bigdataproc.com">Big Data Processing </a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In recent days, I was working on costs optimization on the Google Cloud Platform (GCP) . Google offers recommendations for cost savings and security at the project level. However, managing these recommendations across numerous projects can be arduous, particularly in scenarios like mine where we oversee approximately 100 projects, with limited access to many. Fortunately, redirecting all recommendations to BigQuery and leveraging SQL&#8217;s analytical capabilities proved to be a game-changer. Additionally, configuring Looker Studio facilitated streamlined visualization.</p>



<p>In this blog post, I&#8217;ll illustrate the process of redirecting GCP recommendations to Google BigQuery and uncovering cost-saving recommendations specifically for idle resources. </p>



<h2 class="wp-block-heading">Redirecting GCP Recommendations to BigQuery </h2>



<ul class="wp-block-list">
<li>you will need a service account created at org level with following roles
<ul class="wp-block-list">
<li>roles/bigquery.dataEditor</li>



<li>roles/recommender.exporter</li>
</ul>
</li>



<li>Choose a project to which you want to send GCP recommandation, in our case we have created a separate project for billing and recommendation. Seperate project makes it easier for access control. </li>



<li>Now navigate to google bigquery and open data transfers from left side menu and click on CREATE TANSFERS.  </li>



<li>Choose the Recommander V1 from the option as shown in screenshot below and fill our other information</li>



<li>Once the data transfer is executed successfully you will be able to see following two tables in the dataset 
<ul class="wp-block-list">
<li>insights_export</li>



<li>recommendations_export</li>
</ul>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="1024" height="895" src="https://bigdataproc.com/wp-content/uploads/2024/03/image-1024x895.png" alt="" class="wp-image-467" srcset="https://bigdataproc.com/wp-content/uploads/2024/03/image-1024x895.png 1024w, https://bigdataproc.com/wp-content/uploads/2024/03/image-300x262.png 300w, https://bigdataproc.com/wp-content/uploads/2024/03/image-768x671.png 768w, https://bigdataproc.com/wp-content/uploads/2024/03/image.png 1256w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>


<h2 class="wp-block-heading">Analyse Data For GCP for Cost Saving </h2>



<p>Following query will give you list of all the idle resources which could be either deleted or shutdown to save cost.  Query will show you project name, resource name, action to be taken, description and how much you will cost you will be saving in your local currency. </p>



<pre class="EnlighterJSRAW" data-enlighter-language="sql" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">SELECT
  r,
  SPLIT(r, "/")[4] AS project_name,
  ARRAY_REVERSE(SPLIT(r, "/"))[0] AS resource_name,
   recommender_subtype as action,
  description,
  primary_impact.cost_projection.cost_in_local_currency. units AS cost_savings_per_month
FROM
  you_project.dataset.recommendations_export,
  UNNEST(target_resources) AS r
WHERE
  TIMESTAMP_TRUNC(_PARTITIONTIME, DAY) = (select TIMESTAMP_TRUNC(max(_PARTITIONTIME), DAY) from your_project.your_dataset.recommendations_export)
  AND primary_impact.category = "COST"
  AND state = "ACTIVE"
  AND recommender LIKE "%IdleResourceRecommender"</pre>



<h2 class="wp-block-heading">Visualizing Data </h2>



<p>In order to track if we are implementing this suggestion or not I further created a dashboard using looker studio. </p>



<h3 class="wp-block-heading">Query for looker studio dashboard. </h3>



<p>Following query will give you cost optimization recommendation of last 30 days. </p>



<pre class="EnlighterJSRAW" data-enlighter-language="sql" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">SELECT
  r,
  SPLIT(r, "/")[4] AS project_name,
  ARRAY_REVERSE(SPLIT(r, "/"))[0] AS resource_name,
   recommender_subtype as action,
  description,
  primary_impact.cost_projection.cost_in_local_currency. units AS cost_savings_per_month, 
  state, 
  date(last_refresh_time) as date
FROM
  you_project.dataset.recommendations_export,
  UNNEST(target_resources) AS r
WHERE
  TIMESTAMP_TRUNC(_PARTITIONTIME, DAY) > TIMESTAMP(current_date() - 30)
  AND primary_impact.category = "COST"
  AND state = "ACTIVE"
  AND recommender LIKE "%IdleResourceRecommender"</pre>



<h3 class="wp-block-heading">Dashboard </h3>



<p>This dashboard provides valuable insights indicating that our efforts towards cost optimization are bearing fruit. The noticeable decrease in overall recommendations signifies successful implementation of our strategies, affirming that we are indeed on the right track.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" width="1024" height="773" src="https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-1024x773.png" alt="" class="wp-image-474" srcset="https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-1024x773.png 1024w, https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-300x227.png 300w, https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-768x580.png 768w, https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-1536x1160.png 1536w, https://bigdataproc.com/wp-content/uploads/2024/03/Screenshot-2024-03-05-at-9.42.25 AM-2048x1547.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div><p>The post <a href="https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/">Unlocking GCP Cost Optimization Using Recommendation and BigQuery: A FinsOps Guide</a> appeared first on <a href="https://bigdataproc.com">Big Data Processing </a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bigdataproc.com/unlocking-gcp-cost-optimization-using-recommendation-and-bigquery-a-finsops-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
