Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active September 20, 2019 22:42
Show Gist options
  • Save ihcsim/b65b8a2027c655981b50e78715b542d4 to your computer and use it in GitHub Desktop.
Save ihcsim/b65b8a2027c655981b50e78715b542d4 to your computer and use it in GitHub Desktop.
Linkerd StatAll PromQL Queries. See https://github.com/linkerd/linkerd2/pull/3440
--- queries-edge-19.9.3.md 2019-09-20 15:32:55.233035379 -0700
+++ queries-dev.md 2019-09-20 15:33:11.956921137 -0700
@@ -1,90 +1,50 @@
-edge-19.9.3:
+git-2cf17da3:
```
$ linkerd stat all
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, pod))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
-
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, pod))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
+histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
-
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
-
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job, classification, tls)
-sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset, classification, tls)
+sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
+sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
+sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, authority)
+
+histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
+histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
+histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, authority)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, replicationcontroller)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, deployment)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, pod)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, statefulset)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, service)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, k8s_job)
-sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, daemonset)
-
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
+histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, classification, tls)
+sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
+sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
+sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
+```
-$ linkerd -n emojivoto stat deploy
+$ bin/linkerd -n emojivoto stat deploy
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
-sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
+sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, deployment)
-$ linkerd -n emojivoto stat po
+$ bin/linkerd -n emojivoto stat po
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod, classification, tls)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
+sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, pod)
-$ linkerd -n emojivoto-sts stat sts
+$ bin/linkerd -n emojivoto-sts stat sts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
@@ -93,16 +53,16 @@
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-sts\"}) by (namespace, statefulset)
-$ linkerd -n emojivoto-job stat job
+$ bin/linkerd -n emojivoto-job stat job
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
-sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
-sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
+sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job, classification, tls)
+sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-job\"}) by (namespace, k8s_job)
-$ linkerd -n emojivoto stat authority
+$ bin/linkerd -n emojivoto stat authority
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
@@ -111,81 +71,32 @@
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, authority)
-$ linkerd -n emojivoto-ts stat ts
+$ bin/linkerd -n emojivoto-ts stat ts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)
-$ linkerd stat all -A
+$ bin/linkerd stat all -A
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
-histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))
-
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))
-
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
-histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))
-
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, authority, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, statefulset, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, service, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, deployment, classification, tls)
-sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, pod, classification, tls)
-sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (dst_service, classification, tls)
-
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, statefulset)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, deployment)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, service)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, pod)
-sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller)
-
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, statefulset)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, deployment)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, service)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, pod)
-sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller)
-
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, authority)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, daemonset)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, statefulset)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, k8s_job)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, service)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, deployment)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, pod)
-sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, replicationcontroller)
+histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
+sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, classification, tls)
+sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
+sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, authority, trafficspli)"
+sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)"
+
-$ linkerd stat ns --from ns/emojivoto
+$ bin/linkerd stat ns --from ns/emojivoto
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))

git-2cf17da3:

$ linkerd stat all
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, authority)

histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)

histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)

$ bin/linkerd -n emojivoto stat deploy
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, deployment)

$ bin/linkerd -n emojivoto stat po
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, pod)

$ bin/linkerd -n emojivoto-sts stat sts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-sts\"}) by (namespace, statefulset)

$ bin/linkerd -n emojivoto-job stat job
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-job\"}) by (namespace, k8s_job)

$ bin/linkerd -n emojivoto stat authority
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, authority)

$ bin/linkerd -n emojivoto-ts stat ts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)

$ bin/linkerd stat all -A
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, authority, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, authority)

histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service))
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service, authority, trafficspli)"
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, daemonset, statefulset, k8s_job, deployment, replicationcontroller, pod, service)"

$ bin/linkerd stat ns --from ns/emojivoto
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
sum(increase(tcp_read_bytes_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace)
sum(increase(tcp_write_bytes_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace)
sum(increase(response_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace, classification, tls)
sum(tcp_open_connections{direction=\"outbound\", namespace=\"emojivoto\"}) by (dst_namespace)

edge-19.9.3:

$ linkerd stat all
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))

histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))

histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"default\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))

sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job, classification, tls)
sum(increase(response_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset, classification, tls)
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)

sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, authority)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, replicationcontroller)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, deployment)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, pod)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, statefulset)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, service)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, k8s_job)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"default\"}) by (namespace, daemonset)

sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)

sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, replicationcontroller)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, deployment)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, pod)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, daemonset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, service)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, k8s_job)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"default\"}[1m])) by (namespace, authority)

$ linkerd -n emojivoto stat deploy
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, deployment))
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, deployment)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, deployment)

$ linkerd -n emojivoto stat po
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, pod))
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod, classification, tls)
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, pod)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, pod)

$ linkerd -n emojivoto-sts stat sts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (le, namespace, statefulset))
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-sts\"}[1m])) by (namespace, statefulset, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-sts\"}) by (namespace, statefulset)

$ linkerd -n emojivoto-job stat job
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (le, namespace, k8s_job))
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job, classification, tls)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto-job\"}[1m])) by (namespace, k8s_job)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto-job\"}) by (namespace, k8s_job)

$ linkerd -n emojivoto stat authority
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (le, namespace, authority))
sum(increase(tcp_read_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority)
sum(increase(tcp_write_bytes_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority)
sum(increase(response_total{direction=\"inbound\", namespace=\"emojivoto\"}[1m])) by (namespace, authority, classification, tls)
sum(tcp_open_connections{direction=\"inbound\", namespace=\"emojivoto\"}) by (namespace, authority)

$ linkerd -n emojivoto-ts stat ts
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (le, dst_service))
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\", namespace=\"emojivoto-ts\"}[1m])) by (dst_service, classification, tls)

$ linkerd stat all -A
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))

histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))

histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, service))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, statefulset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, daemonset))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, authority))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, k8s_job))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, deployment))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, replicationcontroller))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"inbound\"}[1m])) by (le, namespace, pod))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (le, dst_service))

sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, authority, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, statefulset, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, daemonset, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, service, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, deployment, classification, tls)
sum(increase(response_total{direction=\"inbound\"}[1m])) by (namespace, pod, classification, tls)
sum(increase(response_total{authority=~\"^emoji-svc.emojivoto-ts.svc.+\", direction=\"outbound\"}[1m])) by (dst_service, classification, tls)

sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, deployment)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, service)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, pod)
sum(increase(tcp_read_bytes_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller)

sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, authority)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, daemonset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, statefulset)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, k8s_job)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, deployment)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, service)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, pod)
sum(increase(tcp_write_bytes_total{direction=\"inbound\"}[1m])) by (namespace, replicationcontroller)

sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, authority)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, daemonset)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, statefulset)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, k8s_job)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, service)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, deployment)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, pod)
sum(tcp_open_connections{direction=\"inbound\"}) by (namespace, replicationcontroller)

$ linkerd stat ns --from ns/emojivoto
histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (le, dst_namespace))
sum(increase(tcp_read_bytes_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace)
sum(increase(tcp_write_bytes_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace)
sum(increase(response_total{direction=\"outbound\", namespace=\"emojivoto\"}[1m])) by (dst_namespace, classification, tls)
sum(tcp_open_connections{direction=\"outbound\", namespace=\"emojivoto\"}) by (dst_namespace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment