-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metrics for "$upstream_connect_time" #258
Conversation
} | ||
|
||
// Init initializes a metrics struct | ||
func (m *Collection) Init(cfg *config.NamespaceConfig) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method Collection.Init
has 83 lines of code (exceeds 50 allowed). Consider refactoring.
@@ -356,7 +227,7 @@ func processNamespace(nsCfg config.NamespaceConfig, metrics *Metrics) { | |||
|
|||
} | |||
|
|||
func processSource(nsCfg config.NamespaceConfig, t tail.Follower, parser parser.Parser, metrics *Metrics, hasCounterOnlyLabels bool) { | |||
func processSource(nsCfg config.NamespaceConfig, t tail.Follower, parser parser.Parser, metrics *metrics.Collection, hasCounterOnlyLabels bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function processSource
has 52 lines of code (exceeds 50 allowed). Consider refactoring.
"github.com/martin-helmich/prometheus-nginxlog-exporter/prof" | ||
"github.com/martin-helmich/prometheus-nginxlog-exporter/relabeling" | ||
"github.com/martin-helmich/prometheus-nginxlog-exporter/tail" | ||
"github.com/martin-helmich/prometheus-nginxlog-exporter/pkg/config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2: cannot find package "github.com/martin-helmich/prometheus-nginxlog-exporter/pkg/config" in any of:
Code Climate has analyzed commit 2c401ba and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Fixes #252