Skip to content

Config sources

Skep is not always the source of truth for your configuration. Many teams keep collector and sampler configuration in Git and ship it with their own tools. A config source tells Skep where the configuration comes from, so it never fights your process. Every action that ships a change (deploy a revision, roll out a recipe stage, apply a sampler snapshot) follows it.

Two things have a config source:

  • each fleet’s collector configuration;
  • each environment’s sampler configuration.
Mode Who owns the configuration How a change ships
Skep-managed (default) Skep renders it from the fleet’s profile and rules. Over OpAMP to supervised collectors, or by hand with Confirm applied.
Git A file in your repository. Skep reads it and never pushes over OpAMP. A pull request (GitHub) or merge request (GitLab) against that file. A read-only repository gets a patch.
Observed Someone else. Skep reads what collectors report running and owns nothing. Nothing ships from Skep. Changes are configuration to copy.

In the API, mode is git, observed, or the Skep-managed default, and deploy says what deploying a change does: opamp, manual, pull_request, patch or none.

  1. Open the fleet under Collectors and go to the Config source tab.
  2. Choose the Source of truth.
  3. For Git, pick the Integration, the Repository, the File path of the collector configuration, and the Branch or ref pull requests target (empty means the default branch).
  4. Choose Save source. Skep reads the file once right away. If that read fails, the error shows on the source.

Only human admins can set a source, because it decides whether Skep pushes to collectors and which credentials it uses. Agents can read the source and the proposed change (get_config_source, get_config_proposal) and deploy through deploy_fleet_revision. Switching back to Skep-managed resolves the source’s findings.

Git sources need a GitHub, GitLab or plain Git integration, which is on the Plus plan. See Connect GitHub or GitLab.

With a Git source, the file in your repository is the truth. Skep:

  1. Syncs it: every 10 minutes by default, when a push webhook touches the file, or when you choose Sync now. Skep keeps the current snapshot and 4 earlier ones, not a full history.
  2. Checks it against what Skep recommends.
  3. Compares it with what each online collector runs (drift).
  4. Proposes every change as a pull or merge request against the file.
Check What it looks for
memory_limiter_first memory_limiter first in every pipeline
exporter_batching Exporters batch, in their sending queue or with a batch processor
observer_placement, observer_missing The Skep observers present and in the right place
control_extension The skepcontrol extension present
sample_rate_stamping Sample rates stamped after tail_sampling
refinery_default_sampler, refinery_catch_all_rule For Refinery rules: a default sampler and a catch-all rule

Each failed check raises a COLLECTOR_CONFIG_CHECK finding. Checks marked fixable are fixed in Skep’s proposals.

Drift compares the file with each online collector. For a collector under OpAMP, Skep compares the configuration it reports, as a YAML document (comments and layout do not count). For other collectors, it compares the configuration digest skepcontrol reports. When collectors run something other than the file, Skep raises CONFIG_SOURCE_DRIFT. A file Skep cannot parse, or that the Collector rejects, raises CONFIG_SOURCE_INVALID. Each resolves on the next sync without the problem.

A proposal renders Skep’s pipeline rules, the sampler and fixable checks onto your file. Skep edits only its own processors and puts memory_limiter first. Everything else in the file stays: other components, comments and order. Merging the same change twice changes nothing. Open the Proposed change card to see the diff before anything is opened.

Deploying a revision on a Git fleet opens (or updates) one pull request for that fleet, and the revision becomes in_review.

  • Opening a pull request is a proposal, so the editor role is enough.
  • Agents open it themselves unless your approval rules require a person for pull requests (see Agents and approvals).
  • Skep learns that the pull request merged or closed from the webhook, or by checking every 15 minutes.
  • After a merge, the revision becomes deployed once every reporting collector runs the repository’s configuration. If that has not happened after 7 days, the pull request is marked not_verified. Skep comments the verdict on the pull request once.
  • A closed pull request supersedes its revision.

Recipe stages and sampler snapshots delivered as fleet revisions go through the same path.

A plain Git integration is read only to Skep. Proposals become a patch you download from the pull request record and apply with git am or git apply. The patch counts as merged when a sync finds its content in the repository.

A revision rendered onto your file is validated by the Collector binary only when every component in the file is in the Skep distribution. If your file uses other components, the validation result says why it did not run.

Use Observed when another system manages the collectors and Skep should only watch. Skep reads the configuration collectors report over OpAMP (the most common one in the fleet), runs the same checks, and renders suggestions onto it. Render a suggestion gives you configuration to copy. Deploying is refused, and so is Confirm applied.

An environment’s sampler source follows from its delivery method in Policy, Sampling, Delivery (see Sampling advisor):

Delivery Source mode
Git pull request Git: the file holds Refinery rules or tail_sampling configuration. Applying a snapshot opens a pull request, and Skep compares the file with the snapshot it applied.
Fleet revision, rules URL, webhook or file Skep-managed
Advise mode, or no delivery Observed

If the Git file is a whole collector configuration, Skep merges the sampler into it instead of replacing the file.

Skep · Security · Changelog · Privacy