@@ -376,7 +376,7 @@ func (s *splunkScraper) scrapeIndexerAvgRate(_ context.Context, now pcommon.Time
376
376
}
377
377
}
378
378
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 ) {
380
380
// Because we have to utilize network resources for each KPI we should check that each metrics
381
381
// is enabled before proceeding
382
382
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkAggregationQueueRatio .Enabled {
@@ -488,7 +488,7 @@ func (s *splunkScraper) scrapeIndexerPipelineQueues(ctx context.Context, now pco
488
488
}
489
489
}
490
490
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 ) {
492
492
// Because we have to utilize network resources for each KPI we should check that each metrics
493
493
// is enabled before proceeding
494
494
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkBucketsSearchableStatus .Enabled {
@@ -576,7 +576,7 @@ func (s *splunkScraper) scrapeBucketsSearchableStatus(ctx context.Context, now p
576
576
}
577
577
}
578
578
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 ) {
580
580
// Because we have to utilize network resources for each KPI we should check that each metrics
581
581
// is enabled before proceeding
582
582
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIndexesSize .Enabled {
@@ -689,7 +689,7 @@ func (s *splunkScraper) scrapeIndexesBucketCountAdHoc(ctx context.Context, now p
689
689
}
690
690
}
691
691
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 ) {
693
693
// Because we have to utilize network resources for each KPI we should check that each metrics
694
694
// is enabled before proceeding
695
695
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkSchedulerCompletionRatio .Enabled {
@@ -767,7 +767,7 @@ func (s *splunkScraper) scrapeSchedulerCompletionRatioByHost(ctx context.Context
767
767
}
768
768
}
769
769
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 ) {
771
771
// Because we have to utilize network resources for each KPI we should check that each metrics
772
772
// is enabled before proceeding
773
773
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIndexerRawWriteTime .Enabled {
@@ -845,7 +845,7 @@ func (s *splunkScraper) scrapeIndexerRawWriteSecondsByHost(ctx context.Context,
845
845
}
846
846
}
847
847
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 ) {
849
849
// Because we have to utilize network resources for each KPI we should check that each metrics
850
850
// is enabled before proceeding
851
851
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIndexerCPUTime .Enabled {
@@ -923,7 +923,7 @@ func (s *splunkScraper) scrapeIndexerCPUSecondsByHost(ctx context.Context, now p
923
923
}
924
924
}
925
925
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 ) {
927
927
// Because we have to utilize network resources for each KPI we should check that each metrics
928
928
// is enabled before proceeding
929
929
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIoAvgIops .Enabled {
@@ -1001,7 +1001,7 @@ func (s *splunkScraper) scrapeAvgIopsByHost(ctx context.Context, now pcommon.Tim
1001
1001
}
1002
1002
}
1003
1003
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 ) {
1005
1005
// Because we have to utilize network resources for each KPI we should check that each metrics
1006
1006
// is enabled before proceeding
1007
1007
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkSchedulerAvgRunTime .Enabled {
@@ -1101,7 +1101,7 @@ func unmarshallSearchReq(res *http.Response, sr *searchResponse) error {
1101
1101
}
1102
1102
1103
1103
// 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 ) {
1105
1105
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkIndexerThroughput .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1106
1106
return
1107
1107
}
@@ -1142,7 +1142,7 @@ func (s *splunkScraper) scrapeIndexThroughput(ctx context.Context, now pcommon.T
1142
1142
}
1143
1143
1144
1144
// 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 ) {
1146
1146
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedTotalSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1147
1147
return
1148
1148
}
@@ -1195,7 +1195,7 @@ func (s *splunkScraper) scrapeIndexesTotalSize(ctx context.Context, now pcommon.
1195
1195
}
1196
1196
1197
1197
// 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 ) {
1199
1199
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1200
1200
return
1201
1201
}
@@ -1242,7 +1242,7 @@ func (s *splunkScraper) scrapeIndexesEventCount(ctx context.Context, now pcommon
1242
1242
}
1243
1243
1244
1244
// 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 ) {
1246
1246
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedBucketCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1247
1247
return
1248
1248
}
@@ -1295,7 +1295,7 @@ func (s *splunkScraper) scrapeIndexesBucketCount(ctx context.Context, now pcommo
1295
1295
}
1296
1296
1297
1297
// 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 ) {
1299
1299
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedRawSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1300
1300
return
1301
1301
}
@@ -1348,7 +1348,7 @@ func (s *splunkScraper) scrapeIndexesRawSize(ctx context.Context, now pcommon.Ti
1348
1348
}
1349
1349
1350
1350
// 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 ) {
1352
1352
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedBucketEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1353
1353
return
1354
1354
}
@@ -1418,7 +1418,7 @@ func (s *splunkScraper) scrapeIndexesBucketEventCount(ctx context.Context, now p
1418
1418
}
1419
1419
1420
1420
// 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 ) {
1422
1422
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkDataIndexesExtendedBucketHotCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1423
1423
return
1424
1424
}
@@ -1481,7 +1481,7 @@ func (s *splunkScraper) scrapeIndexesBucketHotWarmCount(ctx context.Context, now
1481
1481
}
1482
1482
1483
1483
// 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 ) {
1485
1485
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkServerIntrospectionQueuesCurrent .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1486
1486
return
1487
1487
}
@@ -1529,7 +1529,7 @@ func (s *splunkScraper) scrapeIntrospectionQueues(ctx context.Context, now pcomm
1529
1529
}
1530
1530
1531
1531
// 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 ) {
1533
1533
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkServerIntrospectionQueuesCurrentBytes .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1534
1534
return
1535
1535
}
@@ -1576,7 +1576,7 @@ func (s *splunkScraper) scrapeIntrospectionQueuesBytes(ctx context.Context, now
1576
1576
}
1577
1577
1578
1578
// 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 ) {
1580
1580
if ! s .conf .MetricsBuilderConfig .Metrics .SplunkKvstoreStatus .Enabled ||
1581
1581
! s .conf .MetricsBuilderConfig .Metrics .SplunkKvstoreReplicationStatus .Enabled ||
1582
1582
! s .conf .MetricsBuilderConfig .Metrics .SplunkKvstoreBackupStatus .Enabled ||
@@ -1642,7 +1642,7 @@ func (s *splunkScraper) scrapeKVStoreStatus(ctx context.Context, now pcommon.Tim
1642
1642
}
1643
1643
1644
1644
// 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 ) {
1646
1646
if ! s .splunkClient .isConfigured (typeSh ) {
1647
1647
return
1648
1648
}
0 commit comments