-
Notifications
You must be signed in to change notification settings - Fork 0
/
Prometheus
27 lines (12 loc) · 1.04 KB
/
Prometheus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##Some Prometheus stuff
##Some PromQL
##Get all pods in the namespace RPS(requests per second)
sum(irate(request_total{namespace="emojivoto", direction="inbound", tls="true"}[90s])) by (pod)
##Get just a particualar pod's RPS
sum(irate(request_total{namespace="emojivoto", pod="web-67ff67d47b-jlfwb", direction="inbound", tls="true"}[90s])) by (pod)
##Note the above is looking @ inbound
sum(irate(request_total{deployment!="", deployment="web", dst_namespace="emojivoto", dst_deployment="emoji", direction="outbound", tls!="true"}[30s])) by (deployment, pod)
sum(irate(request_total{deployment!="", deployment="web", dst_namespace="emojivoto", dst_deployment="emoji", direction="outbound", tls="true"}[30s])) by (deployment, pod)
##Note these are being pulled from Grafana linkerd deployment
sum(irate(request_total{namespace="emojivoto", pod="vote-bot-7c55876b86-v4bnr", direction="outbound", tls="true"}[30s])) by (pod)
sum(irate(request_total{namespace="emojivoto", pod="vote-bot-7c55876b86-v4bnr", direction="outbound", tls!="true"}[30s])) by (pod)