kubernetes / node-problem-detector
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 92 files with 5,704 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,172 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,434 lines of code)
    • 76 very small files (3,098 lines of code)
0% | 0% | 20% | 25% | 54%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 0% | 21% | 26% | 51%
yaml0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg/systemstatsmonitor0% | 0% | 40% | 30% | 28%
pkg/custompluginmonitor0% | 0% | 77% | 18% | 4%
pkg/systemlogmonitor0% | 0% | 24% | 17% | 58%
pkg/exporters0% | 0% | 0% | 57% | 42%
cmd/options0% | 0% | 0% | 100% | 0%
pkg/healthchecker0% | 0% | 0% | 38% | 61%
cmd/nodeproblemdetector0% | 0% | 0% | 60% | 39%
pkg/util0% | 0% | 0% | 0% | 100%
deployment0% | 0% | 0% | 0% | 100%
cmd/healthchecker0% | 0% | 0% | 0% | 100%
pkg/problemmetrics0% | 0% | 0% | 0% | 100%
pkg/logcounter0% | 0% | 0% | 0% | 100%
pkg/problemdetector0% | 0% | 0% | 0% | 100%
cmd/logcounter0% | 0% | 0% | 0% | 100%
pkg/types0% | 0% | 0% | 0% | 100%
pkg/problemdaemon0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
pkg/version0% | 0% | 0% | 0% | 100%
config/plugin0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
net_collector.go
in pkg/systemstatsmonitor
273 3
disk_collector.go
in pkg/systemstatsmonitor
249 5
custom_plugin_monitor.go
in pkg/custompluginmonitor
239 10
plugin.go
in pkg/custompluginmonitor/plugin
209 8
log_monitor.go
in pkg/systemlogmonitor
202 11
stackdriver_exporter.go
in pkg/exporters/stackdriver
178 7
cpu_collector.go
in pkg/systemstatsmonitor
167 3
options.go
in cmd/options
143 6
log_watcher.go
in pkg/systemlogmonitor/logwatchers/journald
143 7
health_checker.go
in pkg/healthchecker
135 6
node_problem_detector_windows.go
in cmd/nodeproblemdetector
124 6
system_stats_monitor.go
in pkg/systemstatsmonitor
114 5
osfeature_collector.go
in pkg/systemstatsmonitor
114 4
config.go
in pkg/custompluginmonitor/types
108 2
problem_client.go
in pkg/exporters/k8sexporter/problemclient
107 8
manager.go
in pkg/exporters/k8sexporter/condition
101 9
node-problem-detector-healthchecker.yaml
in deployment
99 -
log_watcher.go
in pkg/systemlogmonitor/logwatchers/filelog
96 4
nethealth.go
in pkg/util/nethealth
94 3
helpers.go
in pkg/util/metrics
90 4
node-problem-detector-config.yaml
in deployment
89 -
log_watcher_linux.go
in pkg/systemlogmonitor/logwatchers/kmsg
88 4
node-problem-detector.yaml
in deployment
83 -
cpu_collector_linux.go
in pkg/systemstatsmonitor
81 2
options.go
in cmd/healthchecker/options
79 5
config.go
in pkg/systemstatsmonitor/types
79 2
k8s_exporter.go
in pkg/exporters/k8sexporter
73 4
types.go
in pkg/healthchecker/types
72 4
metric.go
in pkg/util/metrics
71 3
health_checker_windows.go
in pkg/healthchecker
71 6
problem_metrics.go
in pkg/problemmetrics
70 4
memory_collector.go
in pkg/systemstatsmonitor
69 1
translator.go
in pkg/systemlogmonitor/logwatchers/filelog
66 4
problem_detector.go
in pkg/problemdetector
66 3
fake_problem_client.go
in pkg/exporters/k8sexporter/problemclient
64 7
metric_int64.go
in pkg/util/metrics
63 2
fakes.go
in pkg/util/metrics
63 3
metric_float64.go
in pkg/util/metrics
63 2
log_counter.go
in pkg/logcounter
63 2
log_buffer.go
in pkg/systemlogmonitor
61 6
health_checker_linux.go
in pkg/healthchecker
61 4
types.go
in pkg/types
60 -
cmdline_args.go
in pkg/util/metrics/system
57 3
node_problem_detector.go
in cmd/nodeproblemdetector
52 2
host_collector.go
in pkg/systemstatsmonitor
51 2
exec_windows.go
in pkg/util
47 4
module_stats.go
in pkg/util/metrics/system
46 2
helpers_linux.go
in pkg/util
46 5
type.go
in pkg/exporters/stackdriver/gce
46 2
memory_collector_linux.go
in pkg/systemstatsmonitor
43 1
Files With Most Units (Top 20)
File# lines# units
log_monitor.go
in pkg/systemlogmonitor
202 11
custom_plugin_monitor.go
in pkg/custompluginmonitor
239 10
manager.go
in pkg/exporters/k8sexporter/condition
101 9
plugin.go
in pkg/custompluginmonitor/plugin
209 8
problem_client.go
in pkg/exporters/k8sexporter/problemclient
107 8
log_watcher.go
in pkg/systemlogmonitor/logwatchers/journald
143 7
fake_problem_client.go
in pkg/exporters/k8sexporter/problemclient
64 7
stackdriver_exporter.go
in pkg/exporters/stackdriver
178 7
options.go
in cmd/options
143 6
node_problem_detector_windows.go
in cmd/nodeproblemdetector
124 6
log_buffer.go
in pkg/systemlogmonitor
61 6
health_checker_windows.go
in pkg/healthchecker
71 6
health_checker.go
in pkg/healthchecker
135 6
options.go
in cmd/healthchecker/options
79 5
disk_collector.go
in pkg/systemstatsmonitor
249 5
system_stats_monitor.go
in pkg/systemstatsmonitor
114 5
fake_log_watcher.go
in pkg/systemlogmonitor/logwatchers/testing
29 5
helpers_linux.go
in pkg/util
46 5
osfeature_collector.go
in pkg/systemstatsmonitor
114 4
log_watcher_linux.go
in pkg/systemlogmonitor/logwatchers/kmsg
88 4
Files With Long Lines (Top 20)

There are 23 files with lines longer than 120 characters. In total, there are 49 long lines.

File# lines# units# long lines
options.go
in cmd/options
143 6 10
health_checker_windows.go
in pkg/healthchecker
71 6 5
options.go
in cmd/healthchecker/options
79 5 4
cpu_collector.go
in pkg/systemstatsmonitor
167 3 4
options.go
in cmd/logcounter/options
30 3 2
disk_collector.go
in pkg/systemstatsmonitor
249 5 2
memory_collector.go
in pkg/systemstatsmonitor
69 1 2
osfeature_collector.go
in pkg/systemstatsmonitor
114 4 2
plugin.go
in pkg/custompluginmonitor/plugin
209 8 2
health_checker.go
in pkg/healthchecker
135 6 2
node-problem-detector-config.yaml
in deployment
89 - 2
node_problem_detector_windows.go
in cmd/nodeproblemdetector
124 6 1
config.go
in pkg/systemstatsmonitor/types
79 2 1
custom_plugin_monitor.go
in pkg/custompluginmonitor
239 10 1
log_watcher_linux.go
in pkg/systemlogmonitor/logwatchers/kmsg
88 4 1
nethealth.go
in pkg/util/nethealth
94 3 1
metric_int64.go
in pkg/util/metrics
63 2 1
metric_float64.go
in pkg/util/metrics
63 2 1
helpers_windows.go
in pkg/util
32 2 1
helpers.go
in pkg/util
36 2 1