Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
This report summarizes scanner evidence for thanos-io/thanos, a Go project with 14,261 GitHub stars. SynthScan examined 298,327 lines of code across 927 source files, recording 160 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 91 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 64 finding(s).
Which changes need focused human review? 160 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 160 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | internal/cortex/util/services/service.go | 47 | // ┌────────────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 50 | // ┌─────┐ ┌──────────┐ ┌─────────┐ ┌──────────┐ ┌────────────┐ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 51 | // │ New │─────▶│ Starting │─────▶│ Running │────▶│ Stopping │───┬─▶│ Terminated │ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 52 | // └─────┘ └──────────┘ └─────────┘ └──────────┘ │ └────────────┘ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 55 | // │ │ ┌────────┐ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 56 | // └──────────────────────────────────────────┴──▶│ Failed │ | COMMENT |
| MEDIUM⚡ | internal/cortex/util/services/service.go | 57 | // └────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 138 | // ┌──────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 142 | // ├──────────────┼──────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 144 | // ├──────────────┼──────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 146 | // ├──────────────┼──────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 148 | // └──────────────┴──────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 188 | // ┌───────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 190 | // ┌──────────────┐ │ Store 1 │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 192 | // ├──────────────┼ └───────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 194 | // ├──────────────┼ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 196 | // └──────────────┴ │ Store 2 │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 198 | // └───────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 235 | // ┌────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 236 | // ┌───────────────────────────────────────────────┐ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 238 | // └───────────────────────────────────────────────┘ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 239 | // ├────────────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 241 | // └────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 243 | // ┌────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 244 | // ┌───────────────────────────────────────────────┐ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 246 | // └───────────────────────────────────────────────┘ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 247 | // ├────────────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 249 | // └────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 251 | // ┌────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 252 | // ┌───────────────────────────────────────────────┐ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 254 | // └───────────────────────────────────────────────┘ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 255 | // ├────────────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 257 | // └────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 301 | // ┌──────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 303 | // │ SeaweedFS │ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 305 | // ├──────────────┼──────────────────────────────────────────────────┐ │ Store 1 │◄──────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 307 | // ├──────────────┼──────────────────────────────────────────────────┘ └───────────┘ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 309 | // ├──────────────┼──────────────────────────────────────────────────┐ ┌───────────┐ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 311 | // └──────────────┴──────────────────────────────────────────────────┘ │ Store 2 │◄──────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 313 | // └───────────┘ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 316 | // │ ┌───────────────┐ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 317 | // ┌────────────┐ │ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 318 | // ┌───────────────────────────────────────────────┐ │ │ ├──────┤ Querier │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 320 | // └───────────────────────────────────────────────┘ │ │ │ └───────────────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 321 | // ├────────────┤ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 322 | // │ Sidecar │◄─────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 323 | // └────────────┘ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 325 | // ┌────────────┐ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 326 | // ┌───────────────────────────────────────────────┐ │ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 328 | // └───────────────────────────────────────────────┘ │ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 329 | // ├────────────┤ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 330 | // │ Sidecar │◄─────┤ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 331 | // └────────────┘ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 333 | // ┌────────────┐ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 334 | // ┌───────────────────────────────────────────────┐ │ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 336 | // └───────────────────────────────────────────────┘ │ │ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 337 | // ├────────────┤ │ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 338 | // │ Sidecar │◄─────┘ | COMMENT |
| MEDIUM⚡ | examples/interactive/interactive_test.go | 339 | // └────────────┘ | COMMENT |
| MEDIUM⚡ | pkg/block/indexheader/binary_reader.go | 889 | // │ ┌────────────────────────────────────────┐ │ | COMMENT |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doc.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | mixin/README.md | 61 | { | COMMENT |
| LOW | internal/cortex/tenant/resolver.go | 21 | // ignore stutter warning | COMMENT |
| LOW | …ternal/cortex/chunk/cache/memcached_client_selector.go | 41 | str: a.String(), | COMMENT |
| LOW | internal/cortex/util/log/wrappers.go | 21 | COMMENT | |
| LOW | internal/cortex/util/services/service.go | 41 | } | COMMENT |
| LOW | internal/cortex/util/services/service.go | 61 | StartAsync(ctx context.Context) error | COMMENT |
| LOW | internal/cortex/util/services/service.go | 81 | // FailureCase returns error if Service is in Failed state. | COMMENT |
| LOW | internal/cortex/util/services/basic_service.go | 21 | // If RunningFn or Stopping return error, Service will end in Failed state, otherwise if both functions return without | COMMENT |
| LOW | internal/cortex/util/services/basic_service.go | 41 | // Same context is available via ServiceContext() method (not part of Service interface). | COMMENT |
| LOW | internal/cortex/util/services/basic_service.go | 241 | close(b.terminatedWaitersCh) | COMMENT |
| LOW | internal/cortex/util/services/basic_service.go | 261 | // func (s *exampleService) Send(msg string) bool { | COMMENT |
| LOW | internal/cortex/cortexpb/compat.go | 21 | COMMENT | |
| LOW | internal/cortex/querier/series/series_set.go | 1 | // Copyright (c) The Cortex Authors. | COMMENT |
| LOW | internal/cortex/querier/queryrange/roundtrip.go | 1 | // Copyright (c) The Cortex Authors. | COMMENT |
| LOW | examples/interactive/interactive_test.go | 181 | SamplerParam: 1, | COMMENT |
| LOW | examples/interactive/interactive_test.go | 241 | // └────────────┘ | COMMENT |
| LOW | examples/interactive/interactive_test.go | 301 | // ┌──────────────┐ | COMMENT |
| LOW | examples/interactive/interactive_test.go | 321 | // ├────────────┤ │ | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | pkg/prober/prober.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 401 | // The reloader watches 2 directories: dir and dir/rule-dir. | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 421 | // └─ rule3-source.yaml | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 441 | testutil.Ok(t, os.Rename(tempRule1File, path.Join(dir, "rule1.yaml"))) | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 461 | testutil.Ok(t, os.Symlink(path.Join(dir2, "rule3-001.yaml"), path.Join(dir2, "rule3.yaml"))) | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 481 | // ├─ rule3-002.yaml -> rule3-source.yaml (*) | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 501 | // ├─ rule2.yaml | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 721 | // ├─ rule-dir -> dir2/rule-dir | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 741 | // | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 901 | // The reloader watches 2 directories: dir and dir/rule-dir. | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 921 | // └─ rule3-source.yaml | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 941 | // ├─ rule1.yaml | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 961 | // │ └─ rule4.yaml | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 1121 | switch rel { | COMMENT |
| LOW | pkg/reloader/reloader_test.go | 1141 | // in a directory that isn't watched but the reloader should detect | COMMENT |
| LOW | pkg/reloader/reloader.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/reloader/reloader.go | 21 | // CfgFile: "/path/to/cfg", | COMMENT |
| LOW | pkg/reloader/reloader.go | 41 | // }() | COMMENT |
| LOW | pkg/reloader/reloader.go | 141 | // TODO: https://github.com/thanos-io/thanos/issues/7201 | COMMENT |
| LOW | pkg/reloader/reloader.go | 161 | RuntimeInfoURL *url.URL | COMMENT |
| LOW | pkg/cacheutil/memcached_server_selector.go | 21 | // Therefore, MemcachedJumpHashSelector works best for servers | COMMENT |
| LOW | pkg/exthttp/transport.go | 61 | // Set this value so that the underlying transport round-tripper | COMMENT |
| LOW | pkg/discovery/dns/miekgdns/lookup.go | 21 | // | COMMENT |
| LOW | pkg/discovery/dns/miekgdns/lookup.go | 81 | // immediately returned, otherwise the other servers in the config are | COMMENT |
| LOW | pkg/receive/handler.go | 941 | if r.replicated { | COMMENT |
| LOW | pkg/receive/handler.go | 1721 | type replicationErrors struct { | COMMENT |
| LOW | pkg/queryfrontend/roundtrip_test.go | 581 | res *http.Response | COMMENT |
| LOW | pkg/queryfrontend/roundtrip_test.go | 601 | // stored in the cache. | COMMENT |
| LOW | pkg/rules/rulespb/custom.go | 41 | return &Rule{ | COMMENT |
| LOW | pkg/rules/rulespb/custom.go | 301 | func (x AlertState) Compare(y AlertState) int { | COMMENT |
| LOW | pkg/gate/gate.go | 21 | // | COMMENT |
| LOW | pkg/api/api.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/api/api_test.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/api/status/v1.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/api/query/v1.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/api/query/v1_test.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/api/query/engine.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/errors/stacktrace.go | 21 | pc := make([]uintptr, stackDepth) | COMMENT |
| LOW | pkg/querysharding/analyzer.go | 1 | // Copyright (c) The Thanos Authors. | COMMENT |
| LOW | pkg/querysharding/analyzer.go | 81 | // Analyze uses the following algorithm: | COMMENT |
| 20 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/promclient/promclient.go | 785 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| LOW | pkg/promclient/promclient.go | 807 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| LOW | pkg/promclient/promclient.go | 830 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| LOW | pkg/promclient/promclient.go | 853 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| LOW | pkg/promclient/promclient.go | 880 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| LOW | pkg/promclient/promclient.go | 924 | // NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pkg/tracing/jaeger/remote.go | 5 | // Since these are part of the 'internal' package folder in the OpenTelemetry-go repo, I have added | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/website/mdoxpostprocess.sh | 9 | # Create an _index.md in this dir to enable sorting capabilities and make this version appear top in version picker | COMMENT |
| MEDIUM | scripts/website/mdoxpostprocess.sh | 18 | # Create a thanos/_index.md file to make sure links work. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/proposals-done/202005-query-logging.md | 49 | principalEmail: "user@example.com" | CODE |
| LOW | pkg/ui/react-app/src/pages/graph/GraphControls.test.tsx | 92 | expect(timeInput.prop('placeholder')).toEqual('End time'); | CODE |
| LOW | pkg/ui/react-app/src/pages/graph/GraphControls.test.tsx | 116 | expect(input.prop('placeholder')).toEqual('Res. (s)'); | CODE |
| LOW | pkg/ui/react-app/src/pages/graph/Panel.test.tsx | 146 | expect(timeInput.prop('placeholder')).toEqual('Evaluation time'); | CODE |
| LOW | pkg/ui/react-app/src/pages/graph/TimeInput.test.tsx | 58 | expect(input.prop('placeholder')).toEqual(timeInputProps.placeholder); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pkg/verifier/safe_delete.go | 135 | // TODO: Make this check more robust. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/e2e/rule_test.go | 920 | //TODO: Implement test with unavailable remote-write endpoint(receiver) | COMMENT |