hipages/php-fpm_exporter

View on GitHub
phpfpm/exporter.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function NewExporter has 94 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func NewExporter(pm PoolManager) *Exporter {
    return &Exporter{
        PoolManager: pm,

        CountProcessState: false,
Severity: Major
Found in phpfpm/exporter.go - About 2 hrs to fix

    Method Exporter.Collect has 53 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
        e.mutex.Lock()
        defer e.mutex.Unlock()
    
        if err := e.PoolManager.Update(); err != nil {
    Severity: Minor
    Found in phpfpm/exporter.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status