aws / aws-node-termination-handler
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 177 files with 33,649 lines of code.
    • 4 very long files (19,365 lines of code)
    • 5 long files (2,894 lines of code)
    • 11 medium size files (3,390 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,750 lines of code)
    • 139 very small files (5,250 lines of code)
57% | 8% | 10% | 8% | 15%
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
yaml64% | 7% | 6% | 6% | 14%
go0% | 18% | 42% | 17% | 21%
tpl0% | 0% | 0% | 37% | 62%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
config/helm63% | 7% | 6% | 7% | 15%
pkg/node0% | 100% | 0% | 0% | 0%
cmd0% | 0% | 100% | 0% | 0%
pkg/config0% | 0% | 100% | 0% | 0%
pkg/monitor0% | 0% | 31% | 13% | 54%
pkg/ec2metadata0% | 0% | 100% | 0% | 0%
pkg/interruptioneventstore0% | 0% | 0% | 100% | 0%
pkg/observability0% | 0% | 0% | 52% | 47%
pkg/webhook0% | 0% | 0% | 100% | 0%
pkg/uptime0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
crd-prometheuses.yaml
in config/helm/kube-prometheus-stack/crds
7040 -
crd-thanosrulers.yaml
in config/helm/kube-prometheus-stack/crds
5032 -
crd-alertmanagers.yaml
in config/helm/kube-prometheus-stack/crds
4897 -
crd-alertmanagerconfigs.yaml
in config/helm/kube-prometheus-stack/crds
2396 -
values.yaml
in config/helm/kube-prometheus-stack
667 -
node.go
in pkg/node
572 31
crd-probes.yaml
in config/helm/kube-prometheus-stack/crds
567 -
crd-servicemonitors.yaml
in config/helm/kube-prometheus-stack/crds
554 -
crd-podmonitors.yaml
in config/helm/kube-prometheus-stack/crds
534 -
node-termination-handler.go
in cmd
374 10
prometheus.yaml
in config/helm/kube-prometheus-stack/templates/prometheus
358 -
config.go
in pkg/config
357 8
kube-apiserver.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
337 -
node-exporter.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
308 -
kube-apiserver-burnrate.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
307 -
kubernetes-apps.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
301 -
prometheus.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
297 -
sqs-monitor.go
in pkg/monitor/sqsevent
278 10
ec2metadata.go
in pkg/ec2metadata
271 10
deployment.yaml
in config/helm/aws-node-termination-handler/templates
202 -
daemonset.linux.yaml
in config/helm/aws-node-termination-handler/templates
198 -
daemonset.windows.yaml
in config/helm/aws-node-termination-handler/templates
192 -
kubernetes-system-kubelet.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
188 -
etcd.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
179 -
servicemonitor.yaml
in config/helm/kube-prometheus-stack/templates/exporters/kubelet
173 -
alertmanager.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
171 -
k8s.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
163 -
interruption-event-store.go
in pkg/interruptioneventstore
159 12
kubernetes-resources.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
159 -
deployment.yaml
in config/helm/kube-prometheus-stack/templates/prometheus-operator
152 -
alertmanager.yaml
in config/helm/kube-prometheus-stack/templates/alertmanager
149 -
tpl
_helpers.tpl
in config/helm/kube-prometheus-stack/templates
148 -
k8s-events.go
in pkg/observability
135 4
values.yaml
in config/helm/aws-node-termination-handler
123 -
kube-apiserver-availability.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
121 -
scheduled-event-monitor.go
in pkg/monitor/scheduledevent
120 7
webhook.go
in pkg/webhook
119 2
crd-prometheusrules.yaml
in config/helm/kube-prometheus-stack/crds
101 -
kubernetes-system-apiserver.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
100 -
tpl
_helpers.tpl
in config/helm/aws-node-termination-handler/templates
98 -
kube-apiserver-slos.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
95 -
prometheus-operator.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
91 -
kube-state-metrics.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
87 -
opentelemetry.go
in pkg/observability
86 4
clusterrole.yaml
in config/helm/kube-prometheus-stack/templates/prometheus-operator
80 -
kubernetes-storage.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
80 -
node-exporter.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
79 -
ingress.yaml
in config/helm/kube-prometheus-stack/templates/alertmanager
77 -
ingress.yaml
in config/helm/kube-prometheus-stack/templates/prometheus
77 -
ingressThanosSidecar.yaml
in config/helm/kube-prometheus-stack/templates/prometheus
76 -
Files With Most Units (Top 20)
File# lines# units
node.go
in pkg/node
572 31
interruption-event-store.go
in pkg/interruptioneventstore
159 12
sqs-monitor.go
in pkg/monitor/sqsevent
278 10
ec2metadata.go
in pkg/ec2metadata
271 10
node-termination-handler.go
in cmd
374 10
config.go
in pkg/config
357 8
scheduled-event-monitor.go
in pkg/monitor/scheduledevent
120 7
spot-itn-monitor.go
in pkg/monitor/spotitn
73 5
rebalance-recommendation-monitor.go
in pkg/monitor/rebalancerecommendation
71 5
opentelemetry.go
in pkg/observability
86 4
k8s-events.go
in pkg/observability
135 4
probes.go
in pkg/observability
35 2
types.go
in pkg/monitor
35 2
webhook.go
in pkg/webhook
119 2
scheduled-change-event.go
in pkg/monitor/sqsevent
63 1
spot-itn-event.go
in pkg/monitor/sqsevent
49 1
event-bridge.go
in pkg/monitor/sqsevent
25 1
asg-lifecycle-event.go
in pkg/monitor/sqsevent
70 1
ec2-state-change-event.go
in pkg/monitor/sqsevent
46 1
rebalance-recommendation-event.go
in pkg/monitor/sqsevent
48 1
Files With Long Lines (Top 20)

There are 82 files with lines longer than 120 characters. In total, there are 930 long lines.

File# lines# units# long lines
crd-prometheuses.yaml
in config/helm/kube-prometheus-stack/crds
7040 - 126
crd-thanosrulers.yaml
in config/helm/kube-prometheus-stack/crds
5032 - 83
crd-alertmanagers.yaml
in config/helm/kube-prometheus-stack/crds
4897 - 73
kube-apiserver.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
337 - 51
kube-apiserver-burnrate.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
307 - 45
crd-alertmanagerconfigs.yaml
in config/helm/kube-prometheus-stack/crds
2396 - 45
config.go
in pkg/config
357 8 44
prometheus.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
297 - 44
kubernetes-apps.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
301 - 36
node-exporter.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
308 - 26
node-termination-handler.go
in cmd
374 10 24
etcd.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
179 - 19
alertmanager.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
171 - 18
crd-servicemonitors.yaml
in config/helm/kube-prometheus-stack/crds
554 - 17
crd-probes.yaml
in config/helm/kube-prometheus-stack/crds
567 - 17
crd-podmonitors.yaml
in config/helm/kube-prometheus-stack/crds
534 - 17
kubernetes-system-kubelet.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
188 - 16
kube-apiserver-availability.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
121 - 16
prometheus-operator.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
91 - 12
kube-scheduler.rules.yaml
in config/helm/kube-prometheus-stack/templates/prometheus/rules-1.14
63 - 12