Showing 3 of 3 total issues
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 {
Method Pool.Update
has 6 return statements (exceeds 4 allowed). Open
Open
func (p *Pool) Update() (err error) {
p.ScrapeError = nil
scheme, address, path, err := parseURL(p.Address)
if err != nil {