martin-helmich/prometheus-nginxlog-exporter

View on GitHub
pkg/metrics/collection_init.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Collection.Init has 78 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (m *Collection) Init(cfg *config.NamespaceConfig) {
    cfg.MustCompile()

    labels := cfg.OrderedLabelNames
    counterLabels := labels
Severity: Major
Found in pkg/metrics/collection_init.go - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status