@@ -1103,7 +1103,7 @@ func unmarshallSearchReq(res *http.Response, sr *searchResponse) error {
1103
1103
1104
1104
// Scrape index throughput introspection endpoint
1105
1105
func (s * splunkScraper ) scrapeIndexThroughput (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1106
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkIndexerThroughput .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1106
+ if ! s .conf .Metrics .SplunkIndexerThroughput .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1107
1107
return
1108
1108
}
1109
1109
i := info [typeIdx ].Entries [0 ].Content
@@ -1144,7 +1144,7 @@ func (s *splunkScraper) scrapeIndexThroughput(_ context.Context, now pcommon.Tim
1144
1144
1145
1145
// Scrape indexes extended total size
1146
1146
func (s * splunkScraper ) scrapeIndexesTotalSize (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1147
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedTotalSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1147
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedTotalSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1148
1148
return
1149
1149
}
1150
1150
i := info [typeIdx ].Entries [0 ].Content
@@ -1197,7 +1197,7 @@ func (s *splunkScraper) scrapeIndexesTotalSize(_ context.Context, now pcommon.Ti
1197
1197
1198
1198
// Scrape indexes extended total event count
1199
1199
func (s * splunkScraper ) scrapeIndexesEventCount (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1200
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1200
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1201
1201
return
1202
1202
}
1203
1203
i := info [typeIdx ].Entries [0 ].Content
@@ -1244,7 +1244,7 @@ func (s *splunkScraper) scrapeIndexesEventCount(_ context.Context, now pcommon.T
1244
1244
1245
1245
// Scrape indexes extended total bucket count
1246
1246
func (s * splunkScraper ) scrapeIndexesBucketCount (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1247
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedBucketCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1247
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedBucketCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1248
1248
return
1249
1249
}
1250
1250
i := info [typeIdx ].Entries [0 ].Content
@@ -1297,7 +1297,7 @@ func (s *splunkScraper) scrapeIndexesBucketCount(_ context.Context, now pcommon.
1297
1297
1298
1298
// Scrape indexes extended raw size
1299
1299
func (s * splunkScraper ) scrapeIndexesRawSize (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1300
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedRawSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1300
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedRawSize .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1301
1301
return
1302
1302
}
1303
1303
i := info [typeIdx ].Entries [0 ].Content
@@ -1350,7 +1350,7 @@ func (s *splunkScraper) scrapeIndexesRawSize(_ context.Context, now pcommon.Time
1350
1350
1351
1351
// Scrape indexes extended bucket event count
1352
1352
func (s * splunkScraper ) scrapeIndexesBucketEventCount (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1353
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedBucketEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1353
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedBucketEventCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1354
1354
return
1355
1355
}
1356
1356
i := info [typeIdx ].Entries [0 ].Content
@@ -1420,7 +1420,7 @@ func (s *splunkScraper) scrapeIndexesBucketEventCount(_ context.Context, now pco
1420
1420
1421
1421
// Scrape indexes extended bucket hot/warm count
1422
1422
func (s * splunkScraper ) scrapeIndexesBucketHotWarmCount (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1423
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkDataIndexesExtendedBucketHotCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1423
+ if ! s .conf .Metrics .SplunkDataIndexesExtendedBucketHotCount .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1424
1424
return
1425
1425
}
1426
1426
i := info [typeIdx ].Entries [0 ].Content
@@ -1483,7 +1483,7 @@ func (s *splunkScraper) scrapeIndexesBucketHotWarmCount(_ context.Context, now p
1483
1483
1484
1484
// Scrape introspection queues
1485
1485
func (s * splunkScraper ) scrapeIntrospectionQueues (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1486
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkServerIntrospectionQueuesCurrent .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1486
+ if ! s .conf .Metrics .SplunkServerIntrospectionQueuesCurrent .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1487
1487
return
1488
1488
}
1489
1489
i := info [typeIdx ].Entries [0 ].Content
@@ -1531,7 +1531,7 @@ func (s *splunkScraper) scrapeIntrospectionQueues(_ context.Context, now pcommon
1531
1531
1532
1532
// Scrape introspection queues bytes
1533
1533
func (s * splunkScraper ) scrapeIntrospectionQueuesBytes (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1534
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkServerIntrospectionQueuesCurrentBytes .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1534
+ if ! s .conf .Metrics .SplunkServerIntrospectionQueuesCurrentBytes .Enabled || ! s .splunkClient .isConfigured (typeIdx ) {
1535
1535
return
1536
1536
}
1537
1537
i := info [typeIdx ].Entries [0 ].Content
@@ -1578,9 +1578,9 @@ func (s *splunkScraper) scrapeIntrospectionQueuesBytes(_ context.Context, now pc
1578
1578
1579
1579
// Scrape introspection kv store status
1580
1580
func (s * splunkScraper ) scrapeKVStoreStatus (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1581
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkKvstoreStatus .Enabled ||
1582
- ! s .conf .MetricsBuilderConfig . Metrics .SplunkKvstoreReplicationStatus .Enabled ||
1583
- ! s .conf .MetricsBuilderConfig . Metrics .SplunkKvstoreBackupStatus .Enabled ||
1581
+ if ! s .conf .Metrics .SplunkKvstoreStatus .Enabled ||
1582
+ ! s .conf .Metrics .SplunkKvstoreReplicationStatus .Enabled ||
1583
+ ! s .conf .Metrics .SplunkKvstoreBackupStatus .Enabled ||
1584
1584
! s .splunkClient .isConfigured (typeCm ) {
1585
1585
return
1586
1586
}
@@ -1756,7 +1756,7 @@ func (s *splunkScraper) scrapeSearchArtifacts(_ context.Context, now pcommon.Tim
1756
1756
1757
1757
// Scrape Health Introspection Endpoint
1758
1758
func (s * splunkScraper ) scrapeHealth (_ context.Context , now pcommon.Timestamp , info infoDict , errs chan error ) {
1759
- if ! s .conf .MetricsBuilderConfig . Metrics .SplunkHealth .Enabled {
1759
+ if ! s .conf .Metrics .SplunkHealth .Enabled {
1760
1760
return
1761
1761
}
1762
1762
i := info [typeCm ].Entries [0 ].Content
0 commit comments