microsoft / AmbariBasedHadoopExporter
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 99 files with 2,841 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (504 lines of code)
    • 95 very small files (2,337 lines of code)
0% | 0% | 0% | 17% | 82%
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
cs0% | 0% | 0% | 19% | 80%
yaml0% | 0% | 0% | 0% | 100%
tpl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Core/Exporters0% | 0% | 0% | 55% | 44%
src/App/Services0% | 0% | 0% | 48% | 51%
src/Core/Models0% | 0% | 0% | 0% | 100%
deployment/ambari-based-hadoop-exporter/templates0% | 0% | 0% | 0% | 100%
src/Infrastructure/Providers0% | 0% | 0% | 0% | 100%
src/App/Logging0% | 0% | 0% | 0% | 100%
src/Core/Configurations0% | 0% | 0% | 0% | 100%
src/Infrastructure/Extensions0% | 0% | 0% | 0% | 100%
src/App0% | 0% | 0% | 0% | 100%
src/Core/Extensions0% | 0% | 0% | 0% | 100%
src/Infrastructure/Utils0% | 0% | 0% | 0% | 100%
src/App/Middlewares0% | 0% | 0% | 0% | 100%
deployment/ambari-based-hadoop-exporter/values0% | 0% | 0% | 0% | 100%
src/Core/Utils0% | 0% | 0% | 0% | 100%
deployment/ambari-based-hadoop-exporter0% | 0% | 0% | 0% | 100%
src/Infrastructure/Configuration0% | 0% | 0% | 0% | 100%
src/App/Configuration0% | 0% | 0% | 0% | 100%
src/Core/Providers0% | 0% | 0% | 0% | 100%
src/Core0% | 0% | 0% | 0% | 100%
src/Infrastructure0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
HdfsNameNodeExporter.cs
in src/Core/Exporters/Concrete
153 2
YarnResourceManagerExporter.cs
in src/Core/Exporters/Concrete
137 3
PrometheusExporterHostedService.cs
in src/App/Services/Hosted
113 4
BaseExporter.cs
in src/Core/Exporters/Concrete
101 3
Queue.cs
in src/Core/Models/AmbariResponseEntities/YarnResourceManager
91 2
deployment.yaml
in deployment/ambari-based-hadoop-exporter/templates
83 -
YarnNodeManagerExporter.cs
in src/Core/Exporters/Concrete
82 2
ClusterExporter.cs
in src/Core/Exporters/Concrete
78 3
HdfsDataNodeExporter.cs
in src/Core/Exporters/Concrete
77 2
HdfsNameNodeSystem.cs
in src/Core/Models/AmbariResponseEntities/HdfsNameNode
68 -
LivenessHostedService.cs
in src/App/Services/Hosted
67 5
HostExporter.cs
in src/Core/Exporters/Concrete
64 2
Program.cs
in src/App
57 1
SecretConfigurationExtension.cs
in src/Infrastructure/Extensions
55 3
FileSecretProvider.cs
in src/Infrastructure/Providers/Concrete
55 3
AmbariApiContentProvider.cs
in src/Infrastructure/Providers/Concrete
54 2
LogModel.cs
in src/App/Logging
53 1
Jvm.cs
in src/Core/Models/AmbariResponseEntities/YarnResourceManager
50 -
HdfsNameNodeJvm.cs
in src/Core/Models/AmbariResponseEntities/HdfsNameNode
46 -
HdfsNameNode.cs
in src/Core/Models/AmbariResponseEntities/HdfsNameNode
42 -
ServiceExtensions.cs
in src/Core/Extensions
38 2
PrometheusUtils.cs
in src/Infrastructure/Utils
38 1
ServiceExtensions.cs
in src/App/Services
35 2
YarnResourceManagerRpc.cs
in src/Core/Models/AmbariResponseEntities/YarnResourceManager
32 -
uservalues.yaml
in deployment/ambari-based-hadoop-exporter/values
31 -
tpl
_helpers.tpl
in deployment/ambari-based-hadoop-exporter/templates
30 -
LogEventPropertyValueConverter.cs
in src/App/Logging
30 2
BaseExporterConfiguration.cs
in src/Core/Configurations/Exporters
29 -
Clusters.cs
in src/Core/Models/AmbariResponseEntities/Cluster
28 -
LogFormatter.cs
in src/App/Logging
27 2
ConfigurationsValidator.cs
in src/App/Middlewares/Concrete
27 2
HdfsDataNodeMetrics.cs
in src/Core/Models/AmbariResponseEntities/HdfsDataNode
27 -
HdfsNameNodeMetrics.cs
in src/Core/Models/AmbariResponseEntities/HdfsNameNode
27 -
HealthReport.cs
in src/Core/Models/AmbariResponseEntities/Cluster
26 -
YarnNodeManagerBase.cs
in src/Core/Models/AmbariResponseEntities/YarnNodeManager
26 -
ServiceExtensions.cs
in src/Infrastructure/Extensions
26 2
Disk.cs
in src/Core/Models/AmbariResponseEntities/GeneralMetrics
24 -
YarnNodeManagerMetrics.cs
in src/Core/Models/AmbariResponseEntities/YarnNodeManager
23 -
HostMetrics.cs
in src/Core/Models/AmbariResponseEntities/ClusterHost
21 -
service.yaml
in deployment/ambari-based-hadoop-exporter/templates
20 -
servicemonitor.yaml
in deployment/ambari-based-hadoop-exporter/templates
20 -
values.yaml
in deployment/ambari-based-hadoop-exporter
20 -
ConfigurationValidationExtensions.cs
in src/App/Services
20 1
BaseValidatableConfiguration.cs
in src/Core/Configurations
20 1
DictionaryExtensions.cs
in src/Core/Extensions
20 1
ComponentInfo.cs
in src/Core/Models/Components
20 -
AlertsSummary.cs
in src/Core/Models/AmbariResponseEntities/Cluster
18 -
Cpu.cs
in src/Core/Models/AmbariResponseEntities/GeneralMetrics
18 -
Memory.cs
in src/Core/Models/AmbariResponseEntities/GeneralMetrics
18 -
HdfsNameNodeRpcClient.cs
in src/Core/Models/AmbariResponseEntities/HdfsNameNode
18 -
Files With Most Units (Top 20)
File# lines# units
LivenessHostedService.cs
in src/App/Services/Hosted
67 5
PrometheusExporterHostedService.cs
in src/App/Services/Hosted
113 4
BaseExporter.cs
in src/Core/Exporters/Concrete
101 3
ClusterExporter.cs
in src/Core/Exporters/Concrete
78 3
YarnResourceManagerExporter.cs
in src/Core/Exporters/Concrete
137 3
SecretConfigurationExtension.cs
in src/Infrastructure/Extensions
55 3
FileSecretProvider.cs
in src/Infrastructure/Providers/Concrete
55 3
LogEventPropertyValueConverter.cs
in src/App/Logging
30 2
LogFormatter.cs
in src/App/Logging
27 2
ConfigurationsValidator.cs
in src/App/Middlewares/Concrete
27 2
ServiceExtensions.cs
in src/App/Services
35 2
HdfsDataNodeExporter.cs
in src/Core/Exporters/Concrete
77 2
HdfsNameNodeExporter.cs
in src/Core/Exporters/Concrete
153 2
HostExporter.cs
in src/Core/Exporters/Concrete
64 2
YarnNodeManagerExporter.cs
in src/Core/Exporters/Concrete
82 2
ServiceExtensions.cs
in src/Core/Extensions
38 2
Queue.cs
in src/Core/Models/AmbariResponseEntities/YarnResourceManager
91 2
ServiceExtensions.cs
in src/Infrastructure/Extensions
26 2
AmbariApiContentProvider.cs
in src/Infrastructure/Providers/Concrete
54 2
LogModel.cs
in src/App/Logging
53 1
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 268 long lines.

File# lines# units# long lines
HdfsNameNodeExporter.cs
in src/Core/Exporters/Concrete
153 2 87
YarnResourceManagerExporter.cs
in src/Core/Exporters/Concrete
137 3 56
HdfsDataNodeExporter.cs
in src/Core/Exporters/Concrete
77 2 29
YarnNodeManagerExporter.cs
in src/Core/Exporters/Concrete
82 2 29
ClusterExporter.cs
in src/Core/Exporters/Concrete
78 3 18
HostExporter.cs
in src/Core/Exporters/Concrete
64 2 17
ServiceExtensions.cs
in src/Core/Extensions
38 2 6
Program.cs
in src/App
57 1 4
SecretConfigurationExtension.cs
in src/Infrastructure/Extensions
55 3 4
LivenessHostedService.cs
in src/App/Services/Hosted
67 5 3
ServiceExtensions.cs
in src/App/Services
35 2 3
ServiceExtensions.cs
in src/Infrastructure/Extensions
26 2 2
AssemblyGlobals.cs
in src/App
4 - 1
GlobalSuppressions.cs
in src/App
2 - 1
LogModel.cs
in src/App/Logging
53 1 1
PrometheusExporterHostedService.cs
in src/App/Services/Hosted
113 4 1
AssemblyGlobals.cs
in src/Core
4 - 1
BaseExporter.cs
in src/Core/Exporters/Concrete
101 3 1
AssemblyGlobals.cs
in src/Infrastructure
4 - 1
AmbariApiContentProvider.cs
in src/Infrastructure/Providers/Concrete
54 2 1