VictoriaMetrics: fast, cost-effective monitoring solution and time series database
This report summarizes scanner evidence for VictoriaMetrics/VictoriaMetrics, a Go project with 17,978 GitHub stars. SynthScan examined 499,289 lines of code across 1931 source files, recording 204 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.4 (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? 204 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 204 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 204 distinct pattern matches across 9 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 |
|---|---|---|---|---|
| LOW | app/vmauth/sso.go | 321 | // and auth state that are valid for a single flow. | COMMENT |
| LOW | app/vmauth/example_config.yml | 1 | # Arbitrary number of usernames may be put here. | COMMENT |
| LOW | app/vmauth/example_config.yml | 81 | # A single user for querying and inserting data: | COMMENT |
| LOW | app/vmauth/example_config_ent.yml | 1 | # Arbitrary number of usernames may be put here. | COMMENT |
| LOW | app/vmstorage/vmstorage_with_tenant_id.go | 41 | // A new instance of this type should be created using | COMMENT |
| LOW | app/vmstorage/vmstorage_with_tenant_id.go | 81 | func (*emptyBlockIterator) Error() error { | COMMENT |
| LOW | app/vmstorage/vmstorage_with_tenant_id.go | 141 | COMMENT | |
| LOW | app/vmstorage/vmstorage_with_tenant_id.go | 181 | COMMENT | |
| LOW | app/vmagent/remotewrite/remotewrite.go | 401 | // PushDropSamplesOnFailure pushes wr to the configured remote storage systems set via -remoteWrite.url | COMMENT |
| LOW | app/vmui/packages/vmui/src/vite-env.d.ts | 1 | /// <reference types="vite/client" /> | COMMENT |
| LOW | app/vmselect/searchutil/searchutil.go | 161 | // | COMMENT |
| LOW | app/vmselect/promql/exec_test.go | 10381 | {Key: []byte("a"), Value: []byte("a")}, | COMMENT |
| LOW | app/vmselect/promql/rollup.go | 1861 | // before calling rollup funcs. | COMMENT |
| LOW | app/vmselect/promql/rollup.go | 2001 | // It is impossible to determine the duration during which the value changed | COMMENT |
| LOW | app/vmselect/promql/rollup_test.go | 2041 | // either due to changes in the scrape interval or missing scrapes. | COMMENT |
| LOW | app/vmselect/promql/rollup_result_cache.go | 601 | } | COMMENT |
| LOW | app/vmselect/promql/eval.go | 141 | COMMENT | |
| LOW | app/vmselect/promql/eval.go | 501 | // | COMMENT |
| LOW | app/vmselect/promql/eval.go | 1361 | // | COMMENT |
| LOW | app/vmselect/promql/eval.go | 1421 | // | COMMENT |
| LOW | app/vmselect/promql/eval.go | 1481 | if iafc != nil && !strings.EqualFold(iafc.ae.Name, "sum") { | COMMENT |
| LOW | app/vmalert/datasource/datasource.go | 21 | Query(ctx context.Context, query string, ts time.Time) (Result, *http.Request, error) | COMMENT |
| LOW | app/vmalert/rule/rule.go | 21 | // that has unique ID, can be Executed and | COMMENT |
| LOW | app/vmalert/rule/alerting.go | 301 | origin map[string]string | COMMENT |
| LOW | app/vmalert/templates/template.go | 1 | // Copyright 2013 The Prometheus Authors | COMMENT |
| LOW | app/vmalert/templates/template.go | 181 | COMMENT | |
| LOW | app/vmalert/templates/template.go | 421 | // externalURL returns value of `external.url` flag | COMMENT |
| LOW | app/vmalert/templates/template.go | 441 | // pathEscape escapes the string so it can be safely placed inside a URL path segment. | COMMENT |
| LOW | app/vmctl/vm/vm.go | 41 | // AccountID for cluster version. | COMMENT |
| LOW | apptest/testcase.go | 321 | COMMENT | |
| LOW | apptest/testcase.go | 341 | // | COMMENT |
| LOW | apptest/vminsert.go | 121 | // listening for incoming HTTP requests. | COMMENT |
| LOW | apptest/vmagent.go | 81 | // | COMMENT |
| LOW | apptest/vmagent.go | 221 | t.Fatalf("unexpected status code: got %d, want %d", statusCode, http.StatusNoContent) | COMMENT |
| LOW | apptest/app.go | 41 | type appOptions struct { | COMMENT |
| LOW | apptest/vmcluster.go | 41 | vminsert.sendBlocking = func(t *testing.T, numRows int, send func()) { | COMMENT |
| LOW | apptest/tests/replication_test.go | 421 | // vmstorage nodes. A vmselect can be configured to skip slow replicas | COMMENT |
| LOW | apptest/tests/replication_test.go | 961 | // factor is the same for all groups (groupRF). There is no replication | COMMENT |
| LOW | apptest/tests/replication_test.go | 981 | // case when N-globalRF+1 groups have received the response from all of | COMMENT |
| LOW | apptest/tests/replication_test.go | 1001 | // from at least M-groupRF+1 nodes. | COMMENT |
| LOW | apptest/tests/replication_test.go | 1141 | COMMENT | |
| LOW | apptest/tests/query_tracer_test.go | 21 | func TestClusterPrometheusQueryTracer(t *testing.T) { | COMMENT |
| LOW | apptest/tests/query_tracer_test.go | 41 | // query tracer needs to be created for each goroutine. This often gets | COMMENT |
| LOW | apptest/tests/backup_restore_test.go | 221 | batch1Future := genData(numMetrics, "batch1", startFuture, stepFuture) | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 61 | - job_name: azure | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 81 | COMMENT | |
| LOW | docs/victoriametrics/sd_configs.md | 141 | # If the token isn't specified, then it is read from a file pointed by CONSUL_HTTP_TOKEN_FILE | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 161 | # | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 181 | # node_meta is an optional node metadata key/value pairs to filter nodes for a given service. | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 261 | COMMENT | |
| LOW | docs/victoriametrics/sd_configs.md | 281 | # See https://www.consul.io/api-docs/catalog#list-nodes-for-service . | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 421 | - job_name: docker | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 501 | # | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 621 | - job_name: ec2 | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 641 | # | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 661 | # | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 841 | # | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 901 | # The mandatory Hetzner role for entity discovery. | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 1041 | # api_server: "..." | COMMENT |
| LOW | docs/victoriametrics/sd_configs.md | 1061 | # Other roles only support selectors matching the role itself (e.g. node role can only contain node selectors). | COMMENT |
| 123 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/victoriametrics/Quick-Start.md | 42 | ### Step 1: Download the binary | COMMENT |
| LOW | docs/victoriametrics/Quick-Start.md | 63 | ### Step 2: Start VictoriaMetrics | COMMENT |
| LOW | docs/victoriametrics/Quick-Start.md | 89 | ### Step 3: Explore the metrics | COMMENT |
| LOW | …des/guide-vmcluster-multiple-retention-setup/README.md | 47 | ### Step 1: Deploying storage groups {#step1} | COMMENT |
| LOW | …des/guide-vmcluster-multiple-retention-setup/README.md | 142 | ### Step 2: Deploying vmselect {#step2} | COMMENT |
| LOW | …des/guide-vmcluster-multiple-retention-setup/README.md | 190 | ### Step 3: Deploying vmagent {#step3} | COMMENT |
| LOW | …des/guide-vmcluster-multiple-retention-setup/README.md | 240 | ### Step 4: Verification | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/fs/fadvise_solaris.go | 6 | // TODO: implement this properly | COMMENT |
| LOW | lib/fs/fadvise_solaris.go | 11 | // TODO: implement this properly | COMMENT |
| LOW | lib/fs/fadvise_openbsd.go | 8 | // TODO: implement this properly | COMMENT |
| LOW | lib/fs/fadvise_openbsd.go | 13 | // TODO: implement this properly | COMMENT |
| LOW | lib/fs/fadvise_darwin.go | 8 | // TODO: implement this properly | COMMENT |
| LOW | lib/fs/fadvise_darwin.go | 13 | // TODO: implement this properly | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …des/guide-vmcluster-multiple-retention-setup/README.md | 161 | # Each list item is a single -storageNode flag. In this example, there is | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/vmanomaly-node-exporter-preset/user_input_example.yml | 35 | # # extra_labels: # some labels are already defined, but you can add more | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | deployment/docker/rules/alerts-vmanomaly.yml | 1 | # This file provides a recommended list of alerts to monitor the health of VictoriaMetrics Anomaly Detection (vmanomaly) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …igitialocean/one-click-droplet/scripts/99-img-check.sh | 93 | # Check if there are log archives or log files that have not been recently cleared. | COMMENT |
| LOW | benchmarks/plot-load.sh | 12 | # Check if the files exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ponents/Configurators/QueryEditor/autocompleteUtils.ts | 56 | export function shouldSuppressAutoSuggestion(value: string): boolean { | CODE |
| LOW | lib/promrelabel/debug.qtpl.go | 76 | qw422016.N().S(`<title>Metric relabel debug</title><script>function setRelabelDebugFormMethod(form) {form.method = (for | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/anomaly-detection/components/monitoring.md | 848 | Use `finish_reason="length"` to investigate responses ending at the output limit. See [Copilot context budgets](https:// | CODE |