Skip to content

Commit ddfae9d

Browse files
committed
enabled splunk.health by default
1 parent a915eff commit ddfae9d

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

receiver/splunkenterprisereceiver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs.
2020

2121
## Configuration
2222

23-
By default the Splunk Enterprise receiver is not configured to gather any metrics (i.e. there are no metrics enabled by default).
23+
**By default the Splunk Enterprise receiver is not configured to gather any metrics other than `splunk.health`**
2424

2525
The following settings are required, omitting them will either cause your receiver to fail to compile or result in 4/5xx return codes during scraping.
2626

receiver/splunkenterprisereceiver/documentation.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ metrics:
1212
enabled: false
1313
```
1414
15+
### splunk.health
16+
17+
The status ('red', 'yellow', or 'green') of the Splunk server. Health of 'red' produces a 0 while all other colors produce a 1.
18+
19+
| Unit | Metric Type | Value Type |
20+
| ---- | ----------- | ---------- |
21+
| {status} | Gauge | Int |
22+
23+
#### Attributes
24+
25+
| Name | Description | Values |
26+
| ---- | ----------- | ------ |
27+
| splunk.feature | The Feature name from the Splunk Health Introspection Endpoint | Any Str |
28+
| splunk.feature.health | The Health (in color form) of a Splunk Feature from the Splunk Health Introspection Endpoint | Any Str |
29+
1530
## Optional Metrics
1631
1732
The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:
@@ -152,21 +167,6 @@ Size in bytes on disk of this index *Note:** Must be pointed at specific indexer
152167
| ---- | ----------- | ------ |
153168
| splunk.index.name | The name of the index reporting a specific KPI | Any Str |
154169

155-
### splunk.health
156-
157-
The status ('red', 'yellow', or 'green') of the Splunk server. Health of 'red' produces a 0 while all other colors produce a 1.
158-
159-
| Unit | Metric Type | Value Type |
160-
| ---- | ----------- | ---------- |
161-
| {status} | Gauge | Int |
162-
163-
#### Attributes
164-
165-
| Name | Description | Values |
166-
| ---- | ----------- | ------ |
167-
| splunk.feature | The Feature name from the Splunk Health Introspection Endpoint | Any Str |
168-
| splunk.feature.health | The Health (in color form) of a Splunk Feature from the Splunk Health Introspection Endpoint | Any Str |
169-
170170
### splunk.indexer.avg.rate
171171

172172
Gauge tracking the average rate of indexed data. **Note:** Search is best run against a Cluster Manager.

receiver/splunkenterprisereceiver/internal/metadata/generated_config.go

Lines changed: 1 addition & 1 deletion
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: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/splunkenterprisereceiver/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ metrics:
352352
attributes: [splunk.host]
353353
#`services/server/health/splunkd/details`
354354
splunk.health:
355-
enabled: false
355+
enabled: true
356356
description: The status ('red', 'yellow', or 'green') of the Splunk server. Health of 'red' produces a 0 while all other colors produce a 1.
357357
unit: "{status}"
358358
gauge:

0 commit comments

Comments
 (0)