spotify / heroic

The Heroic Time Series Database
https://spotify.github.io/heroic/
Apache License 2.0
848 stars 109 forks source link

Implement metric and log lines when a Bigtable request times out, per x-client-id #763

Closed sming closed 3 years ago

sming commented 3 years ago

We need to know how many requests are hitting Bigtable timeouts per x-client-id

Proposed Solution

Design & Implementation Notes

nothing unusual. Just added :

  1. detection logic,
  2. a new metric e.g. query-metrics-client-id-count-playerapp-timeout
  3. logging e.g. "bigtable-query-timeout...
codecov[bot] commented 3 years ago

Codecov Report

Merging #763 (4e88457) into master (903382d) will decrease coverage by 0.04%. The diff coverage is 60.97%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #763      +/-   ##
============================================
- Coverage     55.14%   55.10%   -0.05%     
- Complexity     3163     3164       +1     
============================================
  Files           748      749       +1     
  Lines         20395    20427      +32     
  Branches       1339     1341       +2     
============================================
+ Hits          11247    11256       +9     
- Misses         8661     8683      +22     
- Partials        487      488       +1     
Impacted Files Coverage Δ Complexity Δ
...in/java/com/spotify/heroic/common/FailureType.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...c/main/java/com/spotify/heroic/metric/NodeError.kt 20.00% <0.00%> (ø) 1.00 <0.00> (ø)
.../main/java/com/spotify/heroic/metric/ShardError.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...oic/statistics/noop/NoopMetricBackendReporter.java 87.50% <0.00%> (-5.84%) 9.00 <0.00> (ø)
...tify/heroic/querylogging/noop/NoopQueryLogger.java 16.66% <0.00%> (-1.52%) 2.00 <0.00> (ø)
...potify/heroic/servlet/MandatoryClientIdFilter.java 100.00% <ø> (ø) 4.00 <0.00> (ø)
...spotify/heroic/test/AbstractMetadataBackendIT.java 98.40% <0.00%> (ø) 30.00 <0.00> (ø)
...istics/semantic/SemanticMetricBackendReporter.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../com/spotify/heroic/metric/LocalMetricManager.java 64.67% <73.33%> (+0.08%) 4.00 <1.00> (ø)
.../spotify/heroic/querylogging/Slf4jQueryLogger.java 88.88% <93.75%> (-3.71%) 18.00 <8.00> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 903382d...4e88457. Read the comment docs.