Skip to content

Commit eaf55fe

Browse files
fix naming
1 parent 28b094b commit eaf55fe

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

receiver/splunkenterprisereceiver/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ The status ('red', 'yellow', or 'green') of the Splunk server. Health of 'red' p
405405
| splunk.feature | The Feature name from the Splunk Health Introspection Endpoint | Any Str |
406406
| splunk.feature.health | The Health (in color form) of a Splunk Feature from the Splunk Health Introspection Endpoint | Any Str |
407407

408-
### splunk.indexer.rolling.restart.status
408+
### splunk.indexer.rollingrestart.status
409409

410410
The status of a rolling restart.
411411

@@ -418,7 +418,7 @@ The status of a rolling restart.
418418
| Name | Description | Values |
419419
| ---- | ----------- | ------ |
420420
| splunk.searchable.restart | String that indicates if a searchable rolling restart/upgrade in progress.t | Any Str |
421-
| splunk.rolling.or.restart | String that indicates if there is a rolling restart or rolling upgrade in progress. | Any Str |
421+
| splunk.rollingorrestart | String that indicates if there is a rolling restart or rolling upgrade in progress. | Any Str |
422422

423423
### splunk.indexer.throughput
424424

receiver/splunkenterprisereceiver/internal/metadata/generated_config.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/splunkenterprisereceiver/internal/metadata/generated_config_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/splunkenterprisereceiver/internal/metadata/generated_metrics.go

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/splunkenterprisereceiver/internal/metadata/generated_metrics_test.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/splunkenterprisereceiver/internal/metadata/testdata/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ all_set:
2929
enabled: true
3030
splunk.indexer.raw.write.time:
3131
enabled: true
32-
splunk.indexer.rolling.restart.status:
32+
splunk.indexer.rollingrestart.status:
3333
enabled: true
3434
splunk.indexer.throughput:
3535
enabled: true
@@ -115,7 +115,7 @@ none_set:
115115
enabled: false
116116
splunk.indexer.raw.write.time:
117117
enabled: false
118-
splunk.indexer.rolling.restart.status:
118+
splunk.indexer.rollingrestart.status:
119119
enabled: false
120120
splunk.indexer.throughput:
121121
enabled: false

receiver/splunkenterprisereceiver/metadata.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ attributes:
4848
splunk.searchable.restart:
4949
description: String that indicates if a searchable rolling restart/upgrade in progress.t
5050
type: string
51-
splunk.rolling.or.restart:
51+
splunk.rollingorrestart:
5252
description: String that indicates if there is a rolling restart or rolling upgrade in progress.
5353
type: string
5454

@@ -366,13 +366,13 @@ metrics:
366366
value_type: int
367367
attributes: [splunk.feature, splunk.feature.health]
368368
# `services/cluster/manager/status`
369-
splunk.indexer.rolling.restart.status:
369+
splunk.indexer.rollingrestart.status:
370370
enabled: false
371371
description: The status of a rolling restart.
372372
unit: "{status}"
373373
gauge:
374374
value_type: int
375-
attributes: [splunk.searchable.restart, splunk.rolling.or.restart]
375+
attributes: [splunk.searchable.restart, splunk.rollingorrestart]
376376

377377
tests:
378378
config:

receiver/splunkenterprisereceiver/scraper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,10 +1832,10 @@ func (s *splunkScraper) scrapeIndexerClusterManagerStatus(ctx context.Context, n
18321832
for _, mtsSearchable := range []string{"false", "true"} {
18331833
if restartOrUpgrade == mtsRestartOrUpgrade && searchable == mtsSearchable && restarting {
18341834
// If we're restarting, put a 1 in the gauge that matches the current state
1835-
s.mb.RecordSplunkIndexerRollingRestartStatusDataPoint(now, 1, mtsRestartOrUpgrade, mtsSearchable)
1835+
s.mb.RecordSplunkIndexerRollingrestartStatusDataPoint(now, 1, mtsRestartOrUpgrade, mtsSearchable)
18361836
} else {
18371837
// Put a zero in all the other gauges
1838-
s.mb.RecordSplunkIndexerRollingRestartStatusDataPoint(now, 0, mtsRestartOrUpgrade, mtsSearchable)
1838+
s.mb.RecordSplunkIndexerRollingrestartStatusDataPoint(now, 0, mtsRestartOrUpgrade, mtsSearchable)
18391839
}
18401840
}
18411841
}

0 commit comments

Comments
 (0)