Skip to content

Commit 8cc20e0

Browse files
authored
Update README (#44)
- Fix docker ports - Add troubleshooting section - Other minor README edits Also minor modifications to default configs - Move `extensions` below `exporters` - Add commented `endpoint` for `zpages` - Add commented `logging` exporter
1 parent 38c5c7c commit 8cc20e0

File tree

5 files changed

+62
-40
lines changed

5 files changed

+62
-40
lines changed

README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ which require the following environment variables:
2525
In addition, the following environment variables are optional:
2626

2727
- `SPLUNK_CONFIG` (default = `/etc/otel/collector/splunk-config_linux.yaml`): Which configuration to load.
28-
- `SPLUNK_MEMORY_LIMIT_PERCENTAGE` (default = `90`): Maximum amount of total memory targeted to be allocated by the process heap.
29-
- `SPLUNK_MEMORY_SPIKE_PERCENTAGE` (default = `20`): Maximum spike expected between the measurements of memory usage.
28+
- `SPLUNK_MEMORY_LIMIT_PERCENTAGE` (default = `90`): Maximum total memory to be allocated by the process heap.
29+
- `SPLUNK_MEMORY_SPIKE_PERCENTAGE` (default = `20`): Maximum spike between the measurements of memory usage.
3030

3131
When running on a non-linux system, the following environment variables are required:
3232

33-
- `SPLUNK_CONFIG` (default = `/etc/otel/collector/splunk-config_non_linux.yaml`): Which configuration to load.
34-
- `SPLUNK_MEMORY_LIMIT_MIB` (no default): Maximum amount of total memory targeted to be allocated by the process heap.
35-
- `SPLUNK_MEMORY_SPIKE_MIB` (no default): Maximum spike expected between the measurements of memory usage.
33+
- `SPLUNK_CONFIG` (default = `/etc/otel/collector/splunk-config_non_linux.yaml`): Configuration to load.
34+
- `SPLUNK_MEMORY_LIMIT_MIB` (no default): Maximum total memory to be allocated by the process heap.
35+
- `SPLUNK_MEMORY_SPIKE_MIB` (no default): Maximum spike between the measurements of memory usage.
3636

3737
Deploy the collector as outlined in the below. More information
3838
about deploying and configuring the collector can be found
@@ -43,8 +43,9 @@ about deploying and configuring the collector can be found
4343
Deploy from a Docker container (replace `0.1.0` with the latest stable version number if necessary):
4444

4545
```bash
46-
$ docker run --rm -e SPLUNK_REALM=us0 -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 \
47-
-p 13133 -p 14250 -p 14268 -p 55678-55680 -p 6060 -p 7276 -p 8888 -p 9411 -p 9943 \
46+
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 \
47+
-e SPLUNK_REALM=us0 -p 13133:13133 -p 14250:14250 -p 14268:14268 -p 55678-55680:55678-55680 \
48+
-p 6060:6060 -p 7276:7276 -p 8888:8888 -p 9411:9411 -p 9943:9943 \
4849
--name otelcol quay.io/signalfx/splunk-otel-collector:0.1.0
4950
```
5051

@@ -73,6 +74,8 @@ least a CPU core per Collector. Multiple Collectors can deployed behind a load
7374
balancer. Each Collector runs independently, so sizing increases linearly with
7475
the number of Collectors you deploy.
7576

77+
> The Collector does not persist data to disk so no disk space is required.
78+
7679
## Advanced Configuration
7780

7881
### Command Line Arguments
@@ -83,8 +86,9 @@ specified. Command line arguments take priority over environment variables.
8386
For example in Docker:
8487

8588
```bash
86-
$ docker run --rm -e SPLUNK_REALM=us0 -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 \
87-
-p 13133 -p 14250 -p 14268 -p 55678-55680 -p 6060 -p 7276 -p 8888 -p 9411 -p 9943 \
89+
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 \
90+
-e SPLUNK_REALM=us0 -p 13133:13133 -p 14250:14250 -p 14268:14268 -p 55678-55680:55678-55680 \
91+
-p 6060:6060 -p 7276:7276 -p 8888:8888 -p 9411:9411 -p 9943:9943 \
8892
-v collector.yaml:/etc/collector.yaml:ro \
8993
--name otelcol quay.io/signalfx/splunk-otel-collector:0.1.0 \
9094
--log-level=DEBUG
@@ -98,12 +102,18 @@ be provided.
98102
For example in Docker:
99103

100104
```bash
101-
$ docker run --rm -e SPLUNK_REALM=us0 -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 -e SPLUNK_CONFIG=/etc/collector.yaml \
102-
docker run -p 13133 -p 14250 -p 14268 -p 55678-55680 -p 6060 -p 7276 -p 8888 -p 9411 -p 9943 \
103-
-v collector.yaml:/etc/collector.yaml:ro \
105+
$ docker run --rm -e SPLUNK_ACCESS_TOKEN=12345 -e SPLUNK_BALLAST_SIZE_MIB=683 \
106+
-e SPLUNK_REALM=us0 -e SPLUNK_CONFIG=/etc/collector.yaml -p 13133:13133 -p 14250:14250 \
107+
-p 14268:14268 -p 55678-55680:55678-55680 -p 6060:6060 -p 7276:7276 -p 8888:8888 \
108+
-p 9411:9411 -p 9943:9943 -v collector.yaml:/etc/collector.yaml:ro \
104109
--name otelcol quay.io/signalfx/splunk-otel-collector:0.1.0
105110
```
106111

107112
Note that if the configuration includes a memorylimiter processor then it must set the
108113
value of `ballast_size_mib` setting of the processor to the env variable SPLUNK_BALLAST_SIZE_MIB.
109114
See for example splunk_config.yaml on how to do it.
115+
116+
## Troubleshooting
117+
118+
See the [Collector troubleshooting
119+
documentation](https://github.com/open-telemetry/opentelemetry-collector/blob/master/docs/troubleshooting.md).

cmd/otelcol/config/collector/otlp_config_linux.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Configuration file that uses the OTLP exporters to push data to Splunk products.
22
# Currently supports only tracing.
33

4-
extensions:
5-
health_check:
6-
http_forwarder:
7-
egress:
8-
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
9-
zpages:
10-
114
receivers:
125
jaeger:
136
protocols:
@@ -67,6 +60,16 @@ exporters:
6760
signalfx:
6861
access_token: "${SPLUNK_ACCESS_TOKEN}"
6962
realm: "${SPLUNK_REALM}"
63+
#logging:
64+
#loglevel: debug
65+
66+
extensions:
67+
health_check:
68+
http_forwarder:
69+
egress:
70+
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
71+
zpages:
72+
#endpoint: 0.0.0.0:55679
7073

7174
service:
7275
pipelines:

cmd/otelcol/config/collector/otlp_config_non_linux.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Configuration file that uses the OTLP exporters to push data to Splunk products.
22
# Currently supports only tracing.
33

4-
extensions:
5-
health_check:
6-
http_forwarder:
7-
egress:
8-
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
9-
zpages:
10-
114
receivers:
125
jaeger:
136
protocols:
@@ -67,6 +60,16 @@ exporters:
6760
signalfx:
6861
access_token: "${SPLUNK_ACCESS_TOKEN}"
6962
realm: "${SPLUNK_REALM}"
63+
#logging:
64+
#loglevel: debug
65+
66+
extensions:
67+
health_check:
68+
http_forwarder:
69+
egress:
70+
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
71+
zpages:
72+
#endpoint: 0.0.0.0:55679
7073

7174
service:
7275
pipelines:

cmd/otelcol/config/collector/splunk_config_linux.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Configuration file that uses the Splunk exporters (SAPM, SignalFX) to push
22
# data to Splunk products.
33

4-
extensions:
5-
health_check:
6-
http_forwarder:
7-
egress:
8-
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
9-
zpages:
10-
114
receivers:
125
jaeger:
136
protocols:
@@ -65,6 +58,16 @@ exporters:
6558
signalfx:
6659
access_token: "${SPLUNK_ACCESS_TOKEN}"
6760
realm: "${SPLUNK_REALM}"
61+
#logging:
62+
#loglevel: debug
63+
64+
extensions:
65+
health_check:
66+
http_forwarder:
67+
egress:
68+
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
69+
zpages:
70+
#endpoint: 0.0.0.0:55679
6871

6972
service:
7073
pipelines:

cmd/otelcol/config/collector/splunk_config_non_linux.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Configuration file that uses the Splunk exporters (SAPM, SignalFX) to push
22
# data to Splunk products.
33

4-
extensions:
5-
health_check:
6-
http_forwarder:
7-
egress:
8-
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
9-
zpages:
10-
114
receivers:
125
jaeger:
136
protocols:
@@ -65,6 +58,16 @@ exporters:
6558
signalfx:
6659
access_token: "${SPLUNK_ACCESS_TOKEN}"
6760
realm: "${SPLUNK_REALM}"
61+
#logging:
62+
#loglevel: debug
63+
64+
extensions:
65+
health_check:
66+
http_forwarder:
67+
egress:
68+
endpoint: "https://api.${SPLUNK_REALM}.signalfx.com"
69+
zpages:
70+
#endpoint: 0.0.0.0:55679
6871

6972
service:
7073
pipelines:

0 commit comments

Comments
 (0)