<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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:media="http://search.yahoo.com/mrss/"><channel><title>Capacity Planning on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/capacity-planning/</link><description>Recent content in Capacity Planning on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Wed, 02 Nov 2022 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/capacity-planning/atom.xml" rel="self" type="application/rss+xml"/><item><title>How to Estimate Prometheus's Local Storage and Memory Consumption</title><link>https://www.chenshaowen.com/en/blog/how-to-estimate-the-local-and-memory-storage-consumption-of-prometheus.html</link><pubDate>Wed, 02 Nov 2022 00:00:00 +0000</pubDate><atom:modified>Wed, 02 Nov 2022 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/how-to-estimate-the-local-and-memory-storage-consumption-of-prometheus.html</guid><description>1. Local Storage Capacity Required disk size (GB) = data retention period _ samples fetched per second _ metric data size / 1024 / 1024 / 1024
Where
Samples fetched per second: rate(prometheus_tsdb_head_samples_appended_total[1d]) Average size of a sample within one hour: rate(prometheus_tsdb_compaction_chunk_size_bytes_sum[1d])/rate(prometheus_tsdb_compaction_chunk_samples_sum[1d]) The disk consumption for one day (86400 seconds) can be queried directly in Prometheus:</description><dc:creator>WeChat Official Account</dc:creator><category>Prometheus</category><category>Monitoring</category><category>Kubernetes</category><category>Operations</category><category>Learning</category><category>Capacity Planning</category><category>Troubleshooting</category></item></channel></rss>