Install on Linux
The deb and rpm packages install the Skep distribution (skep-otelcol) as
a systemd service on a Linux host. Use them for a gateway on a VM, or for an
agent on every host. The install guide in the app prints the exact commands
for the options you pick. This page explains them.
Before you start
Section titled “Before you start”- A Linux host on amd64 or arm64 with systemd: Debian or Ubuntu (deb), or RHEL, Fedora or Amazon Linux (rpm).
sudoandcurl.- A collector key (
skc_...). The install flow creates one. See What you need first. - The host can reach Skep over HTTPS.
Open the install guide
Section titled “Open the install guide”- In Skep, open Collectors, then Add collector. On a new organization, Home shows the same choices.
- Choose Need to deploy your first collector?
- Set Platform to Linux (deb, rpm).
- Pick where it runs (Gateway (recommended) or Agent on every node), where telemetry goes, a fleet name, and whether to turn on tail sampling (gateways only).
- Select Create collector key. The key is filled into the commands.
Install the package
Section titled “Install the package”The guide prints these steps with your values. Here they are for a gateway
in the production environment.
-
Install the package. Nothing starts until you enable it.
Terminal window # Debian, Ubuntucurl -fLO https://github.com/skephq/skep-otelcol/releases/download/v0.1.0/skep-otelcol_0.1.0-1_$(dpkg --print-architecture).debsudo apt install ./skep-otelcol_0.1.0-1_$(dpkg --print-architecture).deb# RHEL, Fedora, Amazon Linuxcurl -fLO https://github.com/skephq/skep-otelcol/releases/download/v0.1.0/skep-otelcol-0.1.0-1.$(uname -m).rpmsudo dnf install ./skep-otelcol-0.1.0-1.$(uname -m).rpm -
Set the keys. The service reads them from
/etc/skep-otelcol/skep-otelcol.env, which only root and theskep-otelcolgroup can read. They are never written to the configuration.Terminal window sudo tee /etc/skep-otelcol/skep-otelcol.env >/dev/null <<EOFSKEP_API_KEY=skc_...SKEP_COLLECTOR_NAME=production-gatewayEOFIf the collector sends to Honeycomb, the guide adds
HONEYCOMB_API_KEY. -
Save the configuration. Download
skep-otelcol.yamlfrom the guide into the current directory, then install it:Terminal window sudo install -m 0644 skep-otelcol.yaml /etc/skep-otelcol/config.yaml -
Start the collector now and at every boot.
Terminal window sudo systemctl enable --now skep-otelcol -
Check that it started. Look for
skepcontrol: registered with control planein the log.Terminal window journalctl -u skep-otelcol -f -
Send it telemetry. Point your OpenTelemetry SDKs, or existing collectors, at it over OTLP (port 4317 for gRPC, 4318 for HTTP):
Terminal window export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Agents on every host
Section titled “Agents on every host”With Agent on every node, each host registers as its own collector:
the guide sets SKEP_COLLECTOR_NAME to the name plus $(hostname -s), for
example production-agent-web-01. Run the same steps on every host.
To collect the host’s system logs (syslog, messages, auth), turn on Host
system logs. The package adds the service user to the adm and
systemd-journal groups where they exist (Debian, Ubuntu). Where system
logs are readable by root only (RHEL), the guide adds a step that grants
read access through a drop-in:
sudo mkdir -p /etc/systemd/system/skep-otelcol.service.dprintf '[Service]\nAmbientCapabilities=CAP_DAC_READ_SEARCH\n' | sudo tee /etc/systemd/system/skep-otelcol.service.d/logs.conf >/dev/nullsudo systemctl daemon-reloadLet Skep manage the configuration
Section titled “Let Skep manage the configuration”Turn on Managed by Skep (OpAMP) in the guide to run the collector under
the OpAMP supervisor. An admin creates the fleet in the guide first
(Create fleet), so revision 1 is ready when the collector connects.
There is no configuration file to save. The env file also carries
SKEP_OPAMP_ENDPOINT (wss://app.skep.observer/v1/opamp), SKEP_FLEET,
SKEP_TIER and SKEP_ENVIRONMENT, and you start the supervisor unit
instead:
sudo systemctl enable --now skep-otelcol-supervisorThe two units conflict, so only one runs at a time. Later changes arrive as fleet revisions you deploy in Skep. See Collectors and fleets.
What the package installs
Section titled “What the package installs”| Path | What |
|---|---|
/usr/bin/skep-otelcol |
The distribution. |
/usr/lib/skep-otelcol/opampsupervisor |
The OpAMP supervisor. |
/etc/skep-otelcol/config.yaml |
The configuration. By default an observe only agent profile for a host. |
/etc/skep-otelcol/skep-otelcol.env |
Keys and settings, mode 0640, owned by root:skep-otelcol. |
/etc/skep-otelcol/supervisor.yaml |
The supervisor’s configuration. |
/var/lib/skep-otelcol |
State and the persistent exporter queue. |
skep-otelcol.service |
The collector, running as the skep-otelcol user, with MemoryMax=512M and GOMEMLIMIT=400MiB, hardened with ProtectSystem=strict and NoNewPrivileges. |
skep-otelcol-supervisor.service |
The same, under the OpAMP supervisor. |
Configuration files are kept on upgrade (noreplace). The memory limit and
GOMEMLIMIT match the sizes the generated configurations assume. If you
raise one, raise both.
Check that it worked
Section titled “Check that it worked”- The guide’s last step, Wait for it to register, checks every 3 seconds. It shows the collector’s name, its status and its observer positions when it registers.
- Collectors lists it as online. Services appear in Data within about a minute.
Troubleshooting
Section titled “Troubleshooting”- The service does not start. Run
systemctl status skep-otelcolandjournalctl -u skep-otelcol. Check that/etc/skep-otelcol/config.yamlis the file from the guide. - The log says
skepcontrol: control plane not reachable; collector keeps exporting. The collector cannot register. The error after it says why: a 401 means the key in the env file is wrong or revoked (create a new collector key and restart the service), a network error means the host cannot reach Skep (check the firewall and any proxy). Your telemetry still flows to your backend meanwhile. - No system logs arrive. The service user cannot read the files. Add the drop-in above, or check the file’s group.
- A collector shows as disconnected or stale. Skep has not heard from it for more than 10 minutes. Check the service and its network path to Skep.
- Both units are enabled. They conflict. Disable the one you do not
use:
sudo systemctl disable --now skep-otelcol-supervisor, or the reverse.
Verify the release signatures
Section titled “Verify the release signatures”The packages are attached to the GitHub release of the tag
collector/v0.1.0, with a SHA256SUMS file signed with cosign
(SHA256SUMS.sigstore.json). Download both next to the package, then:
id='^https://github.com/skephq/skep/.github/workflows/release-collector.yml@refs/tags/collector/v'iss=https://token.actions.githubusercontent.comcosign verify-blob --bundle SHA256SUMS.sigstore.json --certificate-identity-regexp "$id" --certificate-oidc-issuer "$iss" SHA256SUMSsha256sum -c SHA256SUMS --ignore-missing