# How To Get Fooled By Metrics

DevFeed: [How To Get Fooled By Metrics](<https://devfeed.tech/articles/how-to-get-fooled-by-metrics-28003.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2020-12-04-howtogetfooledbymetrics/>)

Author: Dominik Sandjaja

Published: 2020-12-04T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [observability](<https://devfeed.tech/topics/observability.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Logging and metrics](<https://devfeed.tech/topics/logging-and-metrics.md>), [Post Mortem](<https://devfeed.tech/topics/post-mortem.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [feature-toggle](<https://devfeed.tech/tags/feature-toggle.md>), [filter](<https://devfeed.tech/tags/filter.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [incident](<https://devfeed.tech/tags/incident.md>), [investigation](<https://devfeed.tech/tags/investigation.md>), [istio](<https://devfeed.tech/tags/istio.md>), [latency](<https://devfeed.tech/tags/latency.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [observability](<https://devfeed.tech/tags/observability.md>)

## AI overview

Filtering out hotel IDs with no data made Processor-to-Fetcher requests smaller, but the observed median latency rose from about 310 ms to 410 ms and median response size grew 10-20 times. The team investigated code and possible connection, CPU, and thread-pool bottlenecks, using added logs and metrics, a feature toggle, and hypothesis testing. The change had removed fast, small requests that previously skewed the histograms and percentiles downward; the metrics reflected the remaining, useful work rather than a performance regression. SLOs and users were unaffected. The incident showed that percentiles and histograms can be accurate yet misleading without understanding which requests contribute to them.

## Source excerpt

Metrics are one of the main building blocks in the topic of observability and we use them heavily. This story is about an incident where we tried to find and resolve a problem that we saw in these metrics. We went down a rabbit hole of potential fixes, only to discover that the metrics were correct all along.