# prometheus/alertmanager SLOC report

> As of 2026-11-14 (commit 373edcb5a2db), prometheus/alertmanager contains 119,457 total lines: 91,138 code, 14,627 comments, 13,692 blank, across 650 files in 16 languages (top language: Go 80.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

prometheus/alertmanager has 91,138 source lines of code out of 119,457 total lines across 650 files, counted with tokei from the main ref at commit 373edcb5a2db on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving prometheus/alertmanager to commit 373edcb5a2db, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

prometheus/alertmanager: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 76.3% of all lines, comments represent 12.2%, and the repository averages 140 code lines per file. Go accounts for 80.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 397 | 96,967 | 72,898 | 12,573 | 11,496 |
| JSON | 18 | 8,056 | 8,056 | 0 | 0 |
| Elm | 89 | 7,696 | 5,994 | 269 | 1,433 |
| YAML | 75 | 1,637 | 1,522 | 81 | 34 |
| TSX | 17 | 702 | 601 | 16 | 85 |
| TypeScript | 11 | 625 | 521 | 19 | 85 |
| Templ | 3 | 559 | 434 | 77 | 48 |
| Protocol Buffers | 5 | 434 | 274 | 96 | 64 |
| CSS | 4 | 282 | 235 | 2 | 45 |
| Makefile | 5 | 273 | 203 | 23 | 47 |
| JavaScript | 6 | 201 | 166 | 14 | 21 |
| HTML | 3 | 160 | 129 | 26 | 5 |

Top language: Go 80.0%. Generated on November 14, 2026. Canonical report: https://octocounts.com/github/prometheus/alertmanager

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/prometheus/alertmanager/commit/373edcb5a2dbdf6a6f7c08de3078cf19f996b47d?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=637380018107a95d6b342dc15ce53708b2bc79f99592e962f630139d47d3ec66).

## Report FAQ

### How many lines of code does prometheus/alertmanager have?

prometheus/alertmanager has 91,138 lines of code, plus 14,627 comment lines and 13,692 blank lines, for 119,457 total lines at commit 373edcb5a2db on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the prometheus/alertmanager line count measured?

OctoCounts resolved the public GitHub repository to commit 373edcb5a2db, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for prometheus/alertmanager?

This OctoCounts report was generated from main at commit 373edcb5a2db on November 14, 2026.

## Similar repository reports

- [helm/helm](https://octocounts.com/github/helm/helm) — Go, 91,106 code lines
- [coinman-dev/3ax-ui](https://octocounts.com/github/coinman-dev/3ax-ui) — Go, 90,883 code lines
- [purpshell/meowcaller](https://octocounts.com/github/purpshell/meowcaller) — Go, 91,686 code lines
- [k0sproject/k0s](https://octocounts.com/github/k0sproject/k0s) — Go, 92,525 code lines
- [schollz/croc](https://octocounts.com/github/schollz/croc) — Go, 89,287 code lines
- [Busnes-app/KyCalendar](https://octocounts.com/github/Busnes-app/KyCalendar) — Go, 88,555 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
