Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shalper2 committed Sep 25, 2023
1 parent 3494fbc commit 49cc421
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
39 changes: 36 additions & 3 deletions receiver/splunkenterprisereceiver/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Splunk Enterprise Receiver
---

The Splunk Enterprise Receiver is a pull based tool which enables the ingestion of key performance metrics (KPI's) describing the operational status of a user's Splunk Enterprise deployment to be
added to their OpenTelemetry Pipeline.
The Splunk Enterprise Receiver is a pull based tool which enables the ingestion of performance metrics describing the operational status of a user's Splunk Enterprise deployment to an appropriate observability tool.
It is designed to leverage several different data sources to gather these metrics including the [introspection api endpoint](https://docs.splunk.com/Documentation/Splunk/9.1.1/RESTREF/RESTintrospect) and serializing
results from ad-hoc searches. Because of this, care must be taken by users when enabling metrics as running searches can effect your Splunk Enterprise Deployment and introspection may fail to report for Splunk
Cloud deployments. The primary purpose of this receiver is to empower those tasked with the maintenance and care of a Splunk Enterprise deployment to leverage opentelemetry and their observability toolset in their
jobs.

## Configuration

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.

* `basicauth` (from [basicauthextension](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/basicauthextension)): A configured stanza for the basicauthextension.
* `auth` (no default): String name referencing your auth extension.
* `endpoint` (no default): your Splunk Enterprise host's endpoint.

The following settings are optional:

* `collection_interval` (default: 10m): The time between scrape attempts.
* `timeout` (default: 60s): The time the scrape function will wait for a response before returning empty.

Example:

```yaml
extensions:
basicauth/client:
client_auth:
username: admin
password: securityFirst

receivers:
splunkenterprise:
auth: basicauth/client
endpoint: "https://localhost:8089"
timeout: 45s
```
For a full list of settings exposed by this receiver please look [here](./config.go) with a detailed configuration [here](./testdata/config.yaml).
3 changes: 1 addition & 2 deletions receiver/splunkenterprisereceiver/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ basicauth/client:
splunkenterprise:
# required settings
auth: basicauth/client # must use basicauthextension
endpoint: "https://localhost:8089"
# Optional settings
endpoint: "https://localhost:8089" # Optional settings
collection_interval: 10s
timeout: 11s
# Also optional: metric settings
Expand Down

0 comments on commit 49cc421

Please sign in to comment.