Skip to content

Commit cd05d0f

Browse files
authored
Update READMEs (#128)
* Update READMEs - Add information about sizing for agent vs. gateway - Enhance Linux installed getting started doc
1 parent 0a9191f commit cd05d0f

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,30 @@ If a Collector handles both trace and metric data then both must be accounted
104104
for when sizing. For example, 5K spans per second plus 10K data points per
105105
second would require 1 CPU core.
106106

107-
The recommendation is to use a ratio of 1:2 for CPU:memory and to allocate at
108-
least a CPU core per Collector. Multiple Collectors can deployed behind a
109-
simple round-robin load balancer. Each Collector runs independently, so scale
110-
increases linearly with the number of Collectors you deploy.
107+
The recommendation is to use a ratio of 1 CPU to 2 GB of memory. By default, the
108+
Collector is configured to use 512 MB of memory.
111109

112110
> The Collector does not persist data to disk so no disk space is required.
113111
112+
### Agent
113+
114+
For Agent instances, scale up resources as needed. Typically only a single
115+
agent runs per application or host so properly sizing the agent is important.
116+
Multiple independent agents could be deployed on a given application or host
117+
depending on the use-case. For example, a privileged agent could be deployed
118+
alongside an unprivileged agent.
119+
120+
### Gateway
121+
122+
For Gateway instances, allocate at least a CPU core per Collector. Note that
123+
multiple Collectors can deployed behind a simple round-robin load balancer for
124+
availability and performance reasons. Each Collector runs independently, so
125+
scale increases linearly with the number of Collectors you deploy.
126+
127+
The recommendation is to configure at least N+1 redundancy, which means a load
128+
balancer and a minimum of two Collector instances should be configured
129+
initially.
130+
114131
## Monitoring
115132

116133
The default configuration automatically scrapes the Collector's own metrics and
@@ -121,6 +138,8 @@ information about the health and status of Collector instances.
121138

122139
See the [Collector troubleshooting
123140
documentation](https://github.com/open-telemetry/opentelemetry-collector/blob/master/docs/troubleshooting.md).
141+
Additional troubleshooting information can be found in the [getting
142+
started](getting-started) READMEs.
124143

125144
## License
126145

docs/getting-started/linux-installer.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
For non-containerized Linux environments, an installer script is available. The
44
script deploys and configures:
55

6-
- Splunk Connector for Linux
6+
- Splunk OpenTelemetry Connector for Linux
77
- [TD Agent
88
(Fluentd)](https://www.fluentd.org/)
99

10-
> IMPORTANT: systemctl is required for automatic service management.
10+
> IMPORTANT: systemd is required to use this script.
1111
1212
Currently, the following Linux distributions and versions are supported:
1313

@@ -33,10 +33,11 @@ for more details and available options.
3333

3434
## Advanced Configuration
3535

36-
### Collector Memory Configuration
36+
### Additional Script Options
3737

38-
Optionally, the `SPLUNK_MEMORY_TOTAL_MIB` variable can be passed to change the
39-
memory allocation configured in the Collector:
38+
Additional configuration options supported by the script can be found by
39+
running the script with the `-h` flag. One variable that may need to changed
40+
is `SPLUNK_MEMORY_TOTAL_MIB` in order to configure the memory allocation:
4041

4142
> By default, this variable is set to `512`.
4243
@@ -46,6 +47,19 @@ sudo sh /tmp/splunk-otel-collector.sh --realm SPLUNK_REALM --memory SPLUNK_TOTAL
4647
-- SPLUNK_ACCESS_TOKEN
4748
```
4849

50+
### Collector Configuration
51+
52+
The Collector comes with a default configuration which can be found at
53+
`/etc/otel/collector/splunk_otel_linux.yaml`. This configuration can be
54+
modified as needed. Possible configuration options can be found in the
55+
`receivers`, `processors`, `exporters`, and `extensions` folders of either:
56+
57+
- [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector)
58+
- [OpenTelemetry Collector Contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib)
59+
60+
After modification, the Collector services needed to be restarted: `sudo
61+
systemctl restart splunk-otel-collector`.
62+
4963
### Fluentd Configuration
5064

5165
By default, the fluentd service will be installed and configured to forward

0 commit comments

Comments
 (0)