diff --git a/.run/all.run.xml b/.run/all.run.xml index a6633cb0e..65ec0a71d 100644 --- a/.run/all.run.xml +++ b/.run/all.run.xml @@ -2,7 +2,7 @@ - + diff --git a/internal/collector/iis/iis_app_pool_was.go b/internal/collector/iis/iis_app_pool_was.go index 01bd861e2..686c9c779 100644 --- a/internal/collector/iis/iis_app_pool_was.go +++ b/internal/collector/iis/iis_app_pool_was.go @@ -174,7 +174,7 @@ func (c *Collector) buildAppPoolWAS() error { } func (c *Collector) collectAppPoolWAS(ch chan<- prometheus.Metric) error { - perfData, err := c.perfDataCollectorWebService.Collect() + perfData, err := c.perfDataCollectorAppPoolWAS.Collect() if err != nil { return fmt.Errorf("failed to collect APP_POOL_WAS metrics: %w", err) } diff --git a/internal/collector/iis/iis_web_service_cache.go b/internal/collector/iis/iis_web_service_cache.go index 5eeb55bf2..cd476659c 100644 --- a/internal/collector/iis/iis_web_service_cache.go +++ b/internal/collector/iis/iis_web_service_cache.go @@ -100,7 +100,7 @@ const ( func (c *Collector) buildWebServiceCache() error { var err error - c.perfDataCollectorWebService, err = perfdata.NewCollector("Web Service Cache", perfdata.InstancesAll, []string{ + c.serviceCachePerfDataCollector, err = perfdata.NewCollector("Web Service Cache", perfdata.InstancesAll, []string{ serviceCacheActiveFlushedEntries, serviceCacheCurrentFileCacheMemoryUsage, serviceCacheMaximumFileCacheMemoryUsage, @@ -314,7 +314,7 @@ func (c *Collector) buildWebServiceCache() error { } func (c *Collector) collectWebServiceCache(ch chan<- prometheus.Metric) error { - perfData, err := c.perfDataCollectorWebService.Collect() + perfData, err := c.serviceCachePerfDataCollector.Collect() if err != nil { return fmt.Errorf("failed to collect Web Service Cache metrics: %w", err) }