phpfpm/exporter.go
Function NewExporter
has 94 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func NewExporter(pm PoolManager) *Exporter {
return &Exporter{
PoolManager: pm,
CountProcessState: false,
Method Exporter.Collect
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
e.mutex.Lock()
defer e.mutex.Unlock()
if err := e.PoolManager.Update(); err != nil {