Collectors and fleets
Skep works through the OpenTelemetry Collectors you already run. Two components inside each collector watch the data and talk to Skep. Collectors are grouped into fleets, and a fleet gets one configuration, rendered as a revision, checked by the real Collector, and delivered over OpAMP, as a pull request, or by hand.
Collectors and the two components
Section titled “Collectors and the two components”A collector is one running instance of the OpenTelemetry Collector. Skep needs two components in it:
| Component | Kind | What it does |
|---|---|---|
skepobserver |
Processor | Reads every item that passes through and summarizes it: keys, types, counts and sketches. It never changes, drops, delays or reorders telemetry, and makes no network calls. |
skepcontrol |
Extension | Registers the collector, uploads the observer’s summaries, fetches the runtime policy snapshot, and sends heartbeats. All network traffic to Skep goes through it. |
You get both components in two ways:
- The Skep distribution (
skep-otelcol): the upstream Collector with a curated set of components plus the two Skep components. It ships as a container image, a Helm chart (skep-collector), and deb and rpm packages. It reports itself asdistro: skep. - Your own Collector build: add both components to your OpenTelemetry Collector Builder manifest. See Your own Collector.
The observer costs about 1.4 microseconds of collector CPU per span. See What leaves your environment for exactly what it sends.
Positions: before and after sampling
Section titled “Positions: before and after sampling”Each observer has a position, which says where in the pipeline it sits:
| Position | Where | What it tells you |
|---|---|---|
pre_sampling |
Before any sampler | What your services produce |
post_sampling |
After the sampler | What your backend receives |
unknown |
Not declared | Counted, but marked as an unknown position |
A gateway that tail samples usually runs two observers, one on each side of
tail_sampling. The pair lets Skep say how much survives sampling and what
questions you can still answer (see
Readiness and health). Every count
Skep shows says which position it came from and whether it is an estimate.
Fleets
Section titled “Fleets”A fleet is a named group of collectors in one environment that share a
role and a configuration. For example, linux-hosts (syslog agents),
k8s-nodes, or gateways-us-east. A fleet has:
- an environment;
- a tier:
edge(agents on hosts or nodes, where host data lives) orgateway(receives from edges, tail samples, holds backend credentials); - an upstream: the gateway fleet an edge fleet forwards to;
- a profile: the install options its base configuration is rendered from;
- a management mode:
opamp(Skep pushes configuration to supervised collectors) ormanual(a person applies it and confirms); - pipeline rules and revisions (below).
A collector joins a fleet by name. Set fleet and tier on
skepcontrol, or let the OpAMP supervisor describe it. Skep creates the
fleet the first time it sees the name. Collectors without a fleet show as
unassigned.
extensions: skepcontrol: endpoint: https://app.skep.observer api_key: ${env:SKEP_API_KEY} environment: production fleet: linux-hosts tier: edgeThe install guides set these for you when you pick a fleet. Admins can also create and edit fleets under Collectors.
Topology
Section titled “Topology”Collectors shows a topology view for each environment: your services, then edge fleets, then gateway fleets, then backends. Each fleet shows collector health, positions, throughput per minute, revision state and the number of active rules.
A link from an edge fleet to a gateway fleet comes from the edge fleet’s declared upstream. The link is marked verified when the gateway reports items that the edge already counted. A link to a backend is verified when the backend is known and the fleet has collectors.
Count once across tiers
Section titled “Count once across tiers”If an edge collector and a gateway both observe pre_sampling, every item
would be counted twice. Skep prevents this with a hop header:
- The edge collector’s OTLP exporter to the gateway sets the request
header
X-Skep-Observed: pre_sampling. - The gateway’s OTLP receiver keeps request metadata
(
include_metadata: true). - The gateway’s observer at that position forwards marked items without counting them. It reports them as upstream observed, which also proves the edge to gateway link in the topology.
The header is request metadata. The telemetry itself is unchanged. Items that reach the gateway directly, without passing an edge, carry no header and are counted at the gateway.
Configurations Skep generates set this up. If you build configurations by
hand and miss the header, Skep raises a DOUBLE_COUNTING_SUSPECTED finding
when an edge fleet and its gateway fleet both count the same services and
the gateway sees no marked items.
Rules of thumb:
- Observe
pre_samplingat the first tier the data passes through. - Observe
post_samplingat the last tier, after the sampler. - Put pipeline rules at the edge. Put tail sampling at the gateway.
Pipeline rules
Section titled “Pipeline rules”A pipeline rule is a list of OpenTelemetry Transformation Language (OTTL) statements for one signal and context, owned by a fleet. Rules come from findings, from recipes, or from a person.
name: redact emails in customer.contactkind: redactsignal: tracescontext: spanstatements: - replace_pattern(attributes["customer.contact"], "[^@\\s]+@[^@\\s]+", "<redacted:email>")- Kinds:
parse,redact,drop,route,enrich,to_metricsandcustom. - A rule runs in a
transformprocessor, afilterprocessor (the statements are drop conditions), or thesignal_to_metricsconnector. - Rules are placed as close to the edge as possible: in the fleets that first counted the data. A redaction at the edge keeps the value off the network. A parse at the edge spreads the CPU cost over many hosts.
- Rules render before the observers, so what Skep observes is what leaves the tier. That is how a fix is verified: the finding that prompted the rule resolves when the observer stops seeing the pattern.
A new rule starts as proposed. Only a completed deployment makes it
active. Editing an active rule makes it proposed again.
Revisions
Section titled “Revisions”A revision is a fleet’s complete rendered configuration: the base profile plus every active and proposed rule, and the environment’s sampler when the fleet runs it. Each revision has:
- the full configuration and its hash;
- a diff against the deployed revision;
- a validation result from the real Collector binary (
skep-otelcol validate).
A revision that fails validation cannot ship. Revision states are draft,
pending_approval, deploying, awaiting_manual_apply, in_review,
merged, deployed, failed and superseded.
To review and ship a change:
- Open the fleet under Collectors and go to Rules to review the proposed rules.
- Render a new revision. Check the diff and the validation result.
- Deploy it. What happens next depends on how the fleet is delivered (below).
- To undo a deployment, roll back to an earlier revision. Skep copies it into a new revision and deploys that, with the same approval rules.
Delivery: OpAMP, pull request, or by hand
Section titled “Delivery: OpAMP, pull request, or by hand”| Fleet | What deploy does | When it counts as deployed |
|---|---|---|
opamp |
Skep pushes the configuration to every connected collector over OpAMP. The supervisor validates it and rolls back on its own if it fails. | Every connected collector reports APPLIED. Any FAILED fails the revision and raises FLEET_ROLLOUT_FAILED. |
manual |
The revision waits as awaiting_manual_apply with the file to install. |
A person with fleet:deploy chooses Confirm applied. Observation then verifies it. |
| Git source | Skep opens a pull or merge request against the configuration file in your repository. | The pull request merges and every reporting collector runs the new file. |
OpAMP fleets run the distribution under the OpenTelemetry OpAMP supervisor (install with the managed option). Skep keeps pushing until each collector reports the desired configuration, so a collector that reconnects or restarts catches up on its own. The fleet page shows drift: how many managed collectors run the desired revision, how many drift, how many failed, and the age of the oldest drift.
On the Free plan, OpAMP fleet management covers up to 10 collectors. See Plans and limits. For repositories as the source of truth, see Config sources.
Who can deploy
Section titled “Who can deploy”Nothing reaches a collector except a deployed fleet revision.
- Proposing a rule or rendering a draft needs the editor role. Nothing changes on any collector.
- Deploying needs the
fleet:deploypermission, which admins hold. - An agent that deploys always gets
202withstatus: pending_approvaland afleet_deployapproval. A person withfleet:deploydecides it. Organization approval settings cannot turn this off, because a wrong transform can drop or corrupt telemetry. - For a fleet whose source is a Git repository, deploying opens a pull request, which is a proposal: the editor role is enough, and your repository’s review decides the merge.
See Agents and approvals.
Collector health
Section titled “Collector health”Each collector has a status from its last contact, shown on Collectors and counted per fleet:
| Status | Meaning |
|---|---|
online |
Reported in the last 10 minutes. |
disconnected |
Silent for up to a day (an admin can change this). |
stale |
Silent for longer, up to a week (an admin can change this). |
retired |
Silent past that. It leaves its fleet and the counts, stays under the Retired tab for 90 days, then is deleted. If it reports again it comes back. |
An admin sets when collectors go stale and retire under Settings, Collector lifecycle. A collector that was the last one reporting some services, with no other collector reporting them since it went silent, waits up to 30 days before it retires, so its finding stays open.
Separately, snapshot_stale means a collector is reporting but its runtime
snapshot has not refreshed, so new policy classes and checks are not
applied. Look for snapshot refresh failed in the collector logs.
Silent and stale collectors raise findings in the fleet family. Their
severity follows what depends on the collector: a silent collector with
production services that no other collector reports is high, one with
nothing behind it is low. A collector silent for 3 days with nothing
depending on it gets a fix to retire it now, which removes it from its
fleet and resolves its findings.