# prometheus/prometheus SLOC report

> As of 2026-09-16 (commit 3fab29b0da5f), prometheus/prometheus contains 543,787 total lines: 453,215 code, 46,661 comments, 43,911 blank, across 1,439 files in 20 languages (top: Go 67.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

prometheus/prometheus has 453,215 source lines of code out of 543,787 total lines across 1,439 files, counted from the 3fab29b0da5f31f98893b73bcc2b20fcf79d0e1e ref at commit 3fab29b0da5f by the OctoCounts tokei engine on 2026-09-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving prometheus/prometheus to commit 3fab29b0da5f, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 83.3% of all lines, comments represent 8.6%, and the repository averages 315 code lines per file. Go accounts for 67.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 718 | 379,017 | 306,869 | 35,395 | 36,753 |
| YAML | 318 | 75,302 | 72,421 | 86 | 2,795 |
| JSON | 50 | 27,402 | 27,385 | 0 | 17 |
| TSX | 148 | 23,851 | 21,753 | 328 | 1,770 |
| TypeScript | 99 | 21,719 | 20,055 | 817 | 847 |
| Happy | 1 | 1,404 | 1,297 | 0 | 107 |
| Shell | 16 | 1,071 | 751 | 163 | 157 |
| JavaScript | 12 | 784 | 666 | 88 | 30 |
| CSS | 22 | 738 | 618 | 19 | 101 |
| Sass | 6 | 729 | 566 | 46 | 117 |
| Protocol Buffers | 4 | 722 | 309 | 330 | 83 |
| Lex | 3 | 276 | 185 | 48 | 43 |

Top language (Go 67.7%). Generated at 2026-09-16T04:56:32.504815263+00:00. Canonical report: https://octocounts.com/github/prometheus/prometheus

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/prometheus/prometheus/commit/3fab29b0da5f31f98893b73bcc2b20fcf79d0e1e?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).

## Report FAQ

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

prometheus/prometheus has 543,787 total lines, including 453,215 code lines, 46,661 comment lines, and 43,911 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 3fab29b0da5f, 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/prometheus?

This OctoCounts report was generated from 3fab29b0da5f31f98893b73bcc2b20fcf79d0e1e at commit 3fab29b0da5f on 2026-09-16T04:56:32.504815263+00:00.

## Similar repository reports

- [rclone/rclone](https://octocounts.com/github/rclone/rclone) — Go, 449,760 code lines
- [ZenGeekLabs/DJOneHub](https://octocounts.com/github/ZenGeekLabs/DJOneHub) — Go, 459,462 code lines
- [QuantumNous/new-api](https://octocounts.com/github/QuantumNous/new-api) — Go, 445,358 code lines
- [tx7do/go-wind-admin](https://octocounts.com/github/tx7do/go-wind-admin) — Go, 463,634 code lines
- [Untrivial-ai/agent-orchestrator](https://octocounts.com/github/Untrivial-ai/agent-orchestrator) — Go, 465,757 code lines
- [google/gvisor](https://octocounts.com/github/google/gvisor) — Go, 466,587 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)
- [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)
