@@ -143,7 +143,7 @@ func (s *splunkScraper) scrape(ctx context.Context) (pmetric.Metrics, error) {
143
143
}
144
144
145
145
// Each metric has its own scrape function associated with it
146
- func (s * splunkScraper ) scrapeLicenseUsageByIndex (ctx context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
146
+ func (s * splunkScraper ) scrapeLicenseUsageByIndex (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
147
147
// Because we have to utilize network resources for each KPI we should check that each metrics
148
148
// is enabled before proceeding
149
149
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkLicenseIndexUsage .Enabled || ! s .splunkClient .isConfigured (typeCm ) {
@@ -217,7 +217,7 @@ func (s *splunkScraper) scrapeLicenseUsageByIndex(ctx context.Context, now pcomm
217
217
}
218
218
}
219
219
220
- func (s * splunkScraper ) scrapeAvgExecLatencyByHost (ctx context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
220
+ func (s * splunkScraper ) scrapeAvgExecLatencyByHost (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
221
221
// Because we have to utilize network resources for each KPI we should check that each metrics
222
222
// is enabled before proceeding
223
223
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkSchedulerAvgExecutionLatency .Enabled {
@@ -295,7 +295,7 @@ func (s *splunkScraper) scrapeAvgExecLatencyByHost(ctx context.Context, now pcom
295
295
}
296
296
}
297
297
298
- func (s * splunkScraper ) scrapeIndexerAvgRate (ctx context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
298
+ func (s * splunkScraper ) scrapeIndexerAvgRate (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
299
299
// Because we have to utilize network resources for each KPI we should check that each metrics
300
300
// is enabled before proceeding
301
301
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIndexerAvgRate .Enabled {
@@ -1749,11 +1749,11 @@ func (s *splunkScraper) scrapeSearchArtifacts(ctx context.Context, now pcommon.T
1749
1749
}
1750
1750
1751
1751
// somewhat unique scrape function for gathering the info attribute
1752
- func (s * splunkScraper ) scrapeInfo (ctx context.Context , now pcommon.Timestamp , errs chan error ) map [any ]Info {
1752
+ func (s * splunkScraper ) scrapeInfo (ctx context.Context , _ pcommon.Timestamp , errs chan error ) map [any ]Info {
1753
1753
// there could be an endpoint configured for each type (never more than 3)
1754
1754
info := make (map [any ]Info )
1755
1755
1756
- for cliType , _ := range s .splunkClient .clients {
1756
+ for cliType := range s .splunkClient .clients {
1757
1757
var i Info
1758
1758
1759
1759
ctx = context .WithValue (ctx , endpointType ("type" ), cliType )
0 commit comments