# Prometheus CPU and Memory spikes

**URL:** <https://discuss.prometheus.io/t/prometheus-cpu-and-memory-spikes/1121>\
**Category:** Prometheus server\
**Created:** [August 2, 2022, 10:09am UTC](https://discuss.prometheus.io/t/prometheus-cpu-and-memory-spikes/1121 "2022-08-02T10:09:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mccricardo](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/mccricardo/32/488_2.png) [@mccricardo](https://discuss.prometheus.io/u/mccricardo)\
**Post date:** [August 2, 2022, 10:09am UTC](https://discuss.prometheus.io/t/prometheus-cpu-and-memory-spikes/1121/1 "2022-08-02T10:09:31Z")

</div>

Hello everyone,

We have Prometheus set up inside Kubernetes clusters.

An **istio-prometheus** mostly scrapes Istio components and Envoy proxies and does a few aggregations. A **main-prometheus** scrapes services and also scrapes **istio-prometheus** through federation.

Often, we have events similar to the one below: sudden spikes in Memory and CPU consumption in **istio-prometheus** , that exceed Prometheus limits and make it crash.

 ![Screenshot 2022-08-02 at 11.00.12](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/66b5e2ea0865e47d2c279a60a1eb1a2fedcda50f.jpeg)

Deployment is done via [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) and we’re using Prometheus 2.37.0.

We’ve confirmed we don’t have rogue Pods showing up unexpectedly.

We need help understanding why this happens and any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![mccricardo](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/mccricardo/32/488_2.png) [@mccricardo](https://discuss.prometheus.io/u/mccricardo)\
**Post date:** [August 2, 2022, 10:10am UTC](https://discuss.prometheus.io/t/prometheus-cpu-and-memory-spikes/1121/2 "2022-08-02T10:10:16Z")

</div>

On a high level, our setup looks similiar to the one below.  
 ![prometheus](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/b56940ed5d42a0b453bfe9d304c3b40f7869575c.png)
