Skip to content

Instantly share code, notes, and snippets.

@pbrissaud
pbrissaud / README.md
Last active February 9, 2022 17:21
Calculate the size of your Prometheus storage

Scans all active targets on your Prometheus server to count the number of samples available to determine the minimum size of your storage according to your retention.

The formula is based on the offcial documentation. I set the sample size to 2 bytes (pessimistic approach)

Installation

pip install -r requirements.txt
@pbrissaud
pbrissaud / README.md
Last active January 28, 2022 13:01
GKE Dataplane V2 Cilium Monitoring

Snippets to monitor Cilium's metrics on GKE Dataplane V2 with Prometheus + Grafana

Limitations

Please note that L7 Hubble metrics such as http and dns requires Cilium L7 Policy enabled, but GKE Dataplane V2 doesn't support it.

Prometheus Metrics

  1. Edit Configmap kubectl edit configmap -n kube-system cilium-config to add these lines :