# prometheus/prometheus SLOC report

> As of 2026-10-07 (commit d4467eede8e6), prometheus/prometheus contains 551,567 total lines: 459,738 code, 47,373 comments, 44,456 blank, across 1,443 files in 20 languages (top: Go 68.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

prometheus/prometheus has 459,738 source lines of code out of 551,567 total lines across 1,443 files, counted from the main ref at commit d4467eede8e6 by the OctoCounts tokei engine on 2026-10-07. 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 d4467eede8e6, 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.4% of all lines, comments represent 8.6%, and the repository averages 319 code lines per file. Go accounts for 68.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 722 | 386,657 | 313,286 | 36,082 | 37,289 |
| YAML | 318 | 75,308 | 72,425 | 88 | 2,795 |
| JSON | 50 | 27,403 | 27,386 | 0 | 17 |
| TSX | 148 | 23,882 | 21,780 | 328 | 1,774 |
| TypeScript | 99 | 21,772 | 20,103 | 820 | 849 |
| Happy | 1 | 1,412 | 1,305 | 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 | 723 | 309 | 331 | 83 |
| Lex | 3 | 294 | 203 | 48 | 43 |

Top language (Go 68.1%). Generated at 2026-10-07T20:50:29.314792631+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/d4467eede8e6d171c7ee06c0307a34878339a237?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 551,567 total lines, including 459,738 code lines, 47,373 comment lines, and 44,456 blank lines.

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

OctoCounts resolved the public GitHub repository to commit d4467eede8e6, 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 main at commit d4467eede8e6 on 2026-10-07T20:50:29.314792631+00:00.

## Similar repository reports

- [rclone/rclone](https://octocounts.com/github/rclone/rclone) — Go, 454,307 code lines
- [CherryHQ/stella](https://octocounts.com/github/CherryHQ/stella) — Go, 465,975 code lines
- [QuantumNous/new-api](https://octocounts.com/github/QuantumNous/new-api) — Go, 472,269 code lines
- [google/gvisor](https://octocounts.com/github/google/gvisor) — Go, 482,200 code lines
- [trufflesecurity/trufflehog](https://octocounts.com/github/trufflesecurity/trufflehog) — Go, 427,898 code lines
- [blitzy-public-samples/bps-trufflehog](https://octocounts.com/github/blitzy-public-samples/bps-trufflehog) — Go, 420,127 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)
