Skip to content

Commit

Permalink
✨ prometheus - pod restarts over time
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanbekker authored May 13, 2024
1 parent dcda211 commit cc7b1e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ How many pod restarts per minute?
rate(kube_pod_container_status_restarts_total{job="kube-state-metrics",namespace="default"}[15m]) * 60 * 15
```

View the pod restarts over time:

```bash
sum(kube_pod_container_status_restarts_total{container="my-service"}) by (pod)
```

## Example Queries

Show me all the metric names for the job=app:
Expand Down

0 comments on commit cc7b1e4

Please sign in to comment.