openai / prometheus
Static Component Dependencies

An overview of static code dependencies among source code logical components.

Intro

Static code dependencies refer to the relationships between different modules, libraries, or components in a software system that are established at compile-time rather than at runtime. These dependencies are determined by the code itself, meaning that one module directly references another through imports, includes, or explicit references in the code. Examples include:

Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 16 components.
  • 254 files, 52,199 LOC (100.0% vs. main code).
  • "tsdb" is biggest, containing 23.55% of LOC.
  • "scripts" is smallest, containing 0.01% of LOC.


tsdb12294 LOC (23%) 50 files
web8813 LOC (16%) 80 files
promql6676 LOC (12%) 12 files
prompb5470 LOC (10%) 7 files
discovery4854 LOC (9%) 23 files
pkg3390 LOC (6%) 30 files
storage3012 LOC (5%) 15 files
cmd1741 LOC (3%) 5 files
scrape1713 LOC (3%) 3 files
rules1297 LOC (2%) 5 files
util1195 LOC (2%) 14 files
notifier570 LOC (1%) 1 file
config468 LOC (<1%) 1 file
consoles389 LOC (<1%) 6 files
template310 LOC (<1%) 1 file
scripts7 LOC (<1%) 1 file
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 54 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 54 links contain 138 dependencies.
  • There are 2 places (4 links) with cyclic dependencies (13 file dependencies).
G cmd cmd util util cmd->util 2 notifier notifier cmd->notifier 1 tsdb tsdb cmd->tsdb 1 config config cmd->config 2 web web cmd->web 1 discovery discovery cmd->discovery 2 scrape scrape cmd->scrape 1 storage storage cmd->storage 2 rules rules cmd->rules 2 promql promql cmd->promql 2 pkg pkg cmd->pkg 3 prompb prompb util->tsdb 1 util->storage 1 util->promql 1 notifier->config 1 notifier->discovery 1 notifier->pkg 1 tsdb->pkg 12 config->pkg 1 web->prompb 1 web->util 2 web->notifier 1 web->tsdb 3 web->config 2 web->discovery 2 template template web->template 1 web->scrape 2 web->storage 4 web->rules 2 web->promql 3 web->pkg 4 discovery->util 11 discovery->pkg 1 template->util 1 template->promql 1 scrape->config 3 scrape->discovery 3 scrape->storage 3 scrape->pkg 3 storage->prompb 3 storage->tsdb 2 storage->config 3 storage->discovery 3 storage->pkg 9 scripts scripts rules->util 2 rules->template 2 rules->storage 1 rules->promql 3 rules->pkg 3 consoles consoles promql->util 2 promql->storage 3 promql->pkg 9 pkg->template 1 pkg->promql 1


Download: SVG DOT (open online Graphviz editor)

Open 2D force graph...
Open 3D force graph...

Show more details about dependencies...






2025-04-14 11:54