GoogleCloudPlatform / prometheus
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
Learn more...
Conditional Complexity Overall
9% | 10% | 21% | 19% | 39%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
go9% | 10% | 21% | 19% | 39%
ts19% | 6% | 27% | 13% | 32%
js0% | 0% | 16% | 15% | 67%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
prompb19% | 26% | 15% | 8% | 30%
promql25% | 7% | 14% | 15% | 36%
model24% | 9% | 17% | 14% | 34%
cmd23% | 14% | 16% | 20% | 24%
tsdb2% | 10% | 25% | 20% | 40%
web4% | 8% | 29% | 19% | 37%
discovery0% | 4% | 24% | 28% | 42%
scrape0% | 16% | 20% | 17% | 45%
util0% | 6% | 15% | 14% | 63%
storage0% | 0% | 13% | 32% | 53%
rules0% | 0% | 29% | 18% | 51%
config0% | 0% | 31% | 38% | 30%
notifier0% | 0% | 16% | 11% | 72%
plugins0% | 0% | 100% | 0% | 0%
tracing0% | 0% | 33% | 19% | 46%
template0% | 0% | 0% | 54% | 46%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
696 157 1
829 156 1
525 151 1
519 149 1
479 128 1
854 97 0
418 88 1
283 84 1
265 81 1
342 78 1
149 73 1
166 64 2
210 61 1
207 54 5
186 53 1
203 49 1
223 48 1
49 47 1
167 47 1
158 46 1
165 46 1
169 45 4
153 44 1
223 43 1
188 43 1
121 43 1
177 42 1
129 41 1
141 41 1
182 41 1
117 40 3
174 39 1
131 37 1
133 37 1
127 36 1
156 35 6
150 35 1
225 35 0
118 33 1
118 33 1
118 33 1
106 33 1
114 32 1
114 32 1
114 31 1
114 31 1
93 31 2
165 31 1
134 31 1
103 30 1