<p>We've been using <code>/stats/summary</code> to get <code>fs</code> metrics, which is like:</p>
<pre><code>&quot;fs&quot;: {
 &quot;time&quot;: &quot;2021-10-14T03:46:05Z&quot;,
 &quot;availableBytes&quot;: 17989276262,
 &quot;capacityBytes&quot;: 29845807308,
 &quot;usedBytes&quot;: 5856531046,
 &quot;inodesFree&quot;: 16799593,
 &quot;inodes&quot;: 17347097,
 &quot;inodesUsed&quot;: 57504
},
</code></pre>
<p>And due to this <a href="https://github.com/elastic/beats/issues/12792" rel="nofollow noreferrer">Move away from kubelet stats/summary</a>, we need to get the same data in another way.</p>
<p>We've tried <code>/metrics/cadvisor</code> and <code>/metrics/resources</code>, but were not successful to get <code>fs</code> data.
Also, it seems that CAdvisor will also be deprecated (in TBD+2 <a href="https://github.com/kubernetes/kubernetes/issues/68522" rel="nofollow noreferrer">here</a>)</p>
<p>We've been searching the net for possible solution but can't seem to find any.</p>
<p>Any ideas on how this can be done?
Or probably point us to the right direction or documentation?</p>
<p>Thank you in advance.</p>

<p>Posted community wiki based on Github topic. Feel free to expand it.</p>
<hr />
<p>Personally, I have not found any equivalent of this call (<code>/api/v1/nodes/&lt;node name&gt;/proxy/stats/summary</code>), and as it is still working and not deprecated in the Kubernetes newest versions ( <code>1.21</code> and <code>1.22</code>), I'd recommend just using it and wait for information about replacement from the Kubernetes team. Check below information:</p>
<p>Information from this <a href="https://github.com/kubernetes/kubernetes/issues/68522" rel="nofollow noreferrer">GitHub topic - # Reduce the set of metrics exposed by the kubelet  #68522</a> (last edited: November 2020, issue open):</p>
<p>It seems that <code>/stats/summary/</code> does not have any replacement recommendation ready:</p>
<blockquote>
<p>[TBD] Propose out-of-tree replacements for kubelet monitoring endpoints</p>
</blockquote>
<p>They will keep the Summary API for the next four versions counting from the version in which replacement will be implemented:</p>
<blockquote>
<p>[TBD+4] Remove the Summary API, cAdvisor prometheus metrics and remove the <code>--enable-container-monitoring-endpoints</code> flag.</p>
</blockquote>
<hr />
<p>In Kubernetes <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.23.md" rel="nofollow noreferrer"><code>v1.23</code> changelog</a> there is no information about changing anything related to the Summary API.</p>
<p>I'd suggest observing and pinging Kubernetes developers directly in <a href="https://github.com/kubernetes/kubernetes/issues/68522" rel="nofollow noreferrer">this GitHub topic</a> for more information.</p>
