Skip to content

Commit 9b45c45

Browse files
committed
renamed ctx (lint)
1 parent 420dd40 commit 9b45c45

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

receiver/splunkenterprisereceiver/scraper.go

+19-19
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (s *splunkScraper) scrapeIndexerAvgRate(_ context.Context, now pcommon.Time
376376
}
377377
}
378378

379-
func (s *splunkScraper) scrapeIndexerPipelineQueues(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
379+
func (s *splunkScraper) scrapeIndexerPipelineQueues(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
380380
// Because we have to utilize network resources for each KPI we should check that each metrics
381381
// is enabled before proceeding
382382
if !s.conf.MetricsBuilderConfig.Metrics.SplunkAggregationQueueRatio.Enabled {
@@ -488,7 +488,7 @@ func (s *splunkScraper) scrapeIndexerPipelineQueues(ctx context.Context, now pco
488488
}
489489
}
490490

491-
func (s *splunkScraper) scrapeBucketsSearchableStatus(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
491+
func (s *splunkScraper) scrapeBucketsSearchableStatus(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
492492
// Because we have to utilize network resources for each KPI we should check that each metrics
493493
// is enabled before proceeding
494494
if !s.conf.MetricsBuilderConfig.Metrics.SplunkBucketsSearchableStatus.Enabled {
@@ -576,7 +576,7 @@ func (s *splunkScraper) scrapeBucketsSearchableStatus(ctx context.Context, now p
576576
}
577577
}
578578

579-
func (s *splunkScraper) scrapeIndexesBucketCountAdHoc(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
579+
func (s *splunkScraper) scrapeIndexesBucketCountAdHoc(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
580580
// Because we have to utilize network resources for each KPI we should check that each metrics
581581
// is enabled before proceeding
582582
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIndexesSize.Enabled {
@@ -689,7 +689,7 @@ func (s *splunkScraper) scrapeIndexesBucketCountAdHoc(ctx context.Context, now p
689689
}
690690
}
691691

692-
func (s *splunkScraper) scrapeSchedulerCompletionRatioByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
692+
func (s *splunkScraper) scrapeSchedulerCompletionRatioByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
693693
// Because we have to utilize network resources for each KPI we should check that each metrics
694694
// is enabled before proceeding
695695
if !s.conf.MetricsBuilderConfig.Metrics.SplunkSchedulerCompletionRatio.Enabled {
@@ -767,7 +767,7 @@ func (s *splunkScraper) scrapeSchedulerCompletionRatioByHost(ctx context.Context
767767
}
768768
}
769769

770-
func (s *splunkScraper) scrapeIndexerRawWriteSecondsByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
770+
func (s *splunkScraper) scrapeIndexerRawWriteSecondsByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
771771
// Because we have to utilize network resources for each KPI we should check that each metrics
772772
// is enabled before proceeding
773773
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIndexerRawWriteTime.Enabled {
@@ -845,7 +845,7 @@ func (s *splunkScraper) scrapeIndexerRawWriteSecondsByHost(ctx context.Context,
845845
}
846846
}
847847

848-
func (s *splunkScraper) scrapeIndexerCPUSecondsByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
848+
func (s *splunkScraper) scrapeIndexerCPUSecondsByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
849849
// Because we have to utilize network resources for each KPI we should check that each metrics
850850
// is enabled before proceeding
851851
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIndexerCPUTime.Enabled {
@@ -923,7 +923,7 @@ func (s *splunkScraper) scrapeIndexerCPUSecondsByHost(ctx context.Context, now p
923923
}
924924
}
925925

926-
func (s *splunkScraper) scrapeAvgIopsByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
926+
func (s *splunkScraper) scrapeAvgIopsByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
927927
// Because we have to utilize network resources for each KPI we should check that each metrics
928928
// is enabled before proceeding
929929
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIoAvgIops.Enabled {
@@ -1001,7 +1001,7 @@ func (s *splunkScraper) scrapeAvgIopsByHost(ctx context.Context, now pcommon.Tim
10011001
}
10021002
}
10031003

1004-
func (s *splunkScraper) scrapeSchedulerRunTimeByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1004+
func (s *splunkScraper) scrapeSchedulerRunTimeByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
10051005
// Because we have to utilize network resources for each KPI we should check that each metrics
10061006
// is enabled before proceeding
10071007
if !s.conf.MetricsBuilderConfig.Metrics.SplunkSchedulerAvgRunTime.Enabled {
@@ -1101,7 +1101,7 @@ func unmarshallSearchReq(res *http.Response, sr *searchResponse) error {
11011101
}
11021102

11031103
// Scrape index throughput introspection endpoint
1104-
func (s *splunkScraper) scrapeIndexThroughput(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1104+
func (s *splunkScraper) scrapeIndexThroughput(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
11051105
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIndexerThroughput.Enabled || !s.splunkClient.isConfigured(typeIdx) {
11061106
return
11071107
}
@@ -1142,7 +1142,7 @@ func (s *splunkScraper) scrapeIndexThroughput(ctx context.Context, now pcommon.T
11421142
}
11431143

11441144
// Scrape indexes extended total size
1145-
func (s *splunkScraper) scrapeIndexesTotalSize(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1145+
func (s *splunkScraper) scrapeIndexesTotalSize(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
11461146
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedTotalSize.Enabled || !s.splunkClient.isConfigured(typeIdx) {
11471147
return
11481148
}
@@ -1195,7 +1195,7 @@ func (s *splunkScraper) scrapeIndexesTotalSize(ctx context.Context, now pcommon.
11951195
}
11961196

11971197
// Scrape indexes extended total event count
1198-
func (s *splunkScraper) scrapeIndexesEventCount(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1198+
func (s *splunkScraper) scrapeIndexesEventCount(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
11991199
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedEventCount.Enabled || !s.splunkClient.isConfigured(typeIdx) {
12001200
return
12011201
}
@@ -1242,7 +1242,7 @@ func (s *splunkScraper) scrapeIndexesEventCount(ctx context.Context, now pcommon
12421242
}
12431243

12441244
// Scrape indexes extended total bucket count
1245-
func (s *splunkScraper) scrapeIndexesBucketCount(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1245+
func (s *splunkScraper) scrapeIndexesBucketCount(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
12461246
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedBucketCount.Enabled || !s.splunkClient.isConfigured(typeIdx) {
12471247
return
12481248
}
@@ -1295,7 +1295,7 @@ func (s *splunkScraper) scrapeIndexesBucketCount(ctx context.Context, now pcommo
12951295
}
12961296

12971297
// Scrape indexes extended raw size
1298-
func (s *splunkScraper) scrapeIndexesRawSize(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1298+
func (s *splunkScraper) scrapeIndexesRawSize(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
12991299
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedRawSize.Enabled || !s.splunkClient.isConfigured(typeIdx) {
13001300
return
13011301
}
@@ -1348,7 +1348,7 @@ func (s *splunkScraper) scrapeIndexesRawSize(ctx context.Context, now pcommon.Ti
13481348
}
13491349

13501350
// Scrape indexes extended bucket event count
1351-
func (s *splunkScraper) scrapeIndexesBucketEventCount(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1351+
func (s *splunkScraper) scrapeIndexesBucketEventCount(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
13521352
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedBucketEventCount.Enabled || !s.splunkClient.isConfigured(typeIdx) {
13531353
return
13541354
}
@@ -1418,7 +1418,7 @@ func (s *splunkScraper) scrapeIndexesBucketEventCount(ctx context.Context, now p
14181418
}
14191419

14201420
// Scrape indexes extended bucket hot/warm count
1421-
func (s *splunkScraper) scrapeIndexesBucketHotWarmCount(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1421+
func (s *splunkScraper) scrapeIndexesBucketHotWarmCount(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
14221422
if !s.conf.MetricsBuilderConfig.Metrics.SplunkDataIndexesExtendedBucketHotCount.Enabled || !s.splunkClient.isConfigured(typeIdx) {
14231423
return
14241424
}
@@ -1481,7 +1481,7 @@ func (s *splunkScraper) scrapeIndexesBucketHotWarmCount(ctx context.Context, now
14811481
}
14821482

14831483
// Scrape introspection queues
1484-
func (s *splunkScraper) scrapeIntrospectionQueues(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1484+
func (s *splunkScraper) scrapeIntrospectionQueues(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
14851485
if !s.conf.MetricsBuilderConfig.Metrics.SplunkServerIntrospectionQueuesCurrent.Enabled || !s.splunkClient.isConfigured(typeIdx) {
14861486
return
14871487
}
@@ -1529,7 +1529,7 @@ func (s *splunkScraper) scrapeIntrospectionQueues(ctx context.Context, now pcomm
15291529
}
15301530

15311531
// Scrape introspection queues bytes
1532-
func (s *splunkScraper) scrapeIntrospectionQueuesBytes(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1532+
func (s *splunkScraper) scrapeIntrospectionQueuesBytes(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
15331533
if !s.conf.MetricsBuilderConfig.Metrics.SplunkServerIntrospectionQueuesCurrentBytes.Enabled || !s.splunkClient.isConfigured(typeIdx) {
15341534
return
15351535
}
@@ -1576,7 +1576,7 @@ func (s *splunkScraper) scrapeIntrospectionQueuesBytes(ctx context.Context, now
15761576
}
15771577

15781578
// Scrape introspection kv store status
1579-
func (s *splunkScraper) scrapeKVStoreStatus(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1579+
func (s *splunkScraper) scrapeKVStoreStatus(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
15801580
if !s.conf.MetricsBuilderConfig.Metrics.SplunkKvstoreStatus.Enabled ||
15811581
!s.conf.MetricsBuilderConfig.Metrics.SplunkKvstoreReplicationStatus.Enabled ||
15821582
!s.conf.MetricsBuilderConfig.Metrics.SplunkKvstoreBackupStatus.Enabled ||
@@ -1642,7 +1642,7 @@ func (s *splunkScraper) scrapeKVStoreStatus(ctx context.Context, now pcommon.Tim
16421642
}
16431643

16441644
// Scrape dispatch artifacts
1645-
func (s *splunkScraper) scrapeSearchArtifacts(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
1645+
func (s *splunkScraper) scrapeSearchArtifacts(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
16461646
if !s.splunkClient.isConfigured(typeSh) {
16471647
return
16481648
}

0 commit comments

Comments
 (0)