-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splunkenterprisereceiver add health metric (#36695) #36695
base: main
Are you sure you want to change the base?
Conversation
* Initial commit * Corrected structs to fit json API response * Added to changelog * PR number added to changelog
Build fails with
|
| Name | Description | Values | | ||
| ---- | ----------- | ------ | | ||
| splunk.feature | The Feature name from the Splunk Health Introspection Endpoint | Any Str | | ||
| splunk.feature.health | The Health (in color form) of a Splunk Feature from the Splunk Health Introspection Endpoint | Any Str | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure you need that? you already get the status via the value right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value only indicates whether it is red or not. A value of 1
could be green
or yellow
. It's not ideal, but color system for splunkd what implemented long before our use of OTel.
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description
Adds
splunk.health
metric that uses the introspection endpoint at/services/server/health/splunkd/details
. The metric features 2 attributes:splunk.feature
: Describes the part of the server's featuresplunk.feature.health
: Describes (in red, yellow, green) the health status of the given featureThe metric will remain a value of 1 unless the feature's health becomes 'red.'
Testing
Built a custom version of splunk-otel-collector that referenced this code. Then ran it on a Splunk stack, and received metrics out. Also created generated tests.
Documentation
Added an entry to
documentation.md
describing the new metric.