Skip to content

Instantly share code, notes, and snippets.

@replay
Last active July 23, 2021 14:34
Show Gist options
  • Save replay/bb6d3bee8e79dab15b6c3b9abfd2f424 to your computer and use it in GitHub Desktop.
Save replay/bb6d3bee8e79dab15b6c3b9abfd2f424 to your computer and use it in GitHub Desktop.
latency to
histogram_quantile(
0.99, sum by (le) (
cortex_request_duration_seconds_bucket{cluster=~"$cluster", job=~"($namespace)/(store-gateway|cortex$)", route=~"/gatewaypb.StoreGateway/.*"}
)
) * 1e3
---
chunks cache latency:
histogram_quantile(0.99, sum(rate(thanos_memcached_operation_duration_seconds_bucket{
cluster=~"$cluster", job=~"($namespace)/(store-gateway|cortex$)",
operation="getmulti",
component="store-gateway",
name="chunks-cache"
}
[$__rate_interval])) by (le)) * 1e3
---
memcached hits vs misses:
sum by(item_type) (
rate(
thanos_store_index_cache_hits_total{
component="store-gateway",
cluster=~"$cluster", job=~"($namespace)/(store-gateway|cortex$)"
}[$__rate_interval]
)
)
/
sum by(item_type) (
rate(
thanos_store_index_cache_requests_total{
component="store-gateway",
cluster=~"$cluster", job=~"($namespace)/(store-gateway|cortex$)"
}[$__rate_interval]
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment