forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix deb filenames for publish * Update systemd env file for SPLUNK_BALLAST * Rename systemd environment file * Allow otelcol options to be configurable in env file
- Loading branch information
Showing
7 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/bin/sh | ||
|
||
if command -v systemctl >/dev/null 2>&1; then | ||
systemctl daemon-reload | ||
systemctl enable splunk-otel-collector.service | ||
# only start the service after package is installed if the environment file exists | ||
if [ -f /etc/otel/collector/splunk_env.sh ]; then | ||
if [ -f /etc/otel/collector/splunk_env ]; then | ||
systemctl start splunk-otel-collector.service | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Sample environment file for passing variables to the splunk-otel-collector service. | ||
# See /etc/otel/collector/splunk_config.yaml for how these variables will be consumed. | ||
|
||
# To use this file, update the values below appropriately, | ||
# and save the changes to "/etc/otel/collector/splunk_env". | ||
|
||
# Then run the following commands to apply the changes and restart the service: | ||
# sudo systemctl daemon-reload | ||
# sudo systemctl restart splunk-otel-collector.service | ||
|
||
# Command-line options for the splunk-otel-collector service. Run `/usr/bin/otelcol --help` to see all available options. | ||
OTELCOL_OPTIONS="--config /etc/otel/collector/splunk_config.yaml" | ||
|
||
# Access token to authenticate requests. | ||
SPLUNK_ACCESS_TOKEN=12345 | ||
|
||
# Which realm to send the data to. | ||
SPLUNK_REALM=us0 | ||
|
||
# How much memory to allocate to the ballast. This should be set to 1/3 to 1/2 of configured memory. | ||
SPLUNK_BALLAST=683 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters