plugin

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

sloth.dev/core/validate/v1

This plugin validates the SLO specification to ensure it is correct and well-formed according to the Prometheus SLO dialect. It is the first plugin executed by Sloth and acts as a safety check before any rules are generated or other plugins are run.

This plugin is enabled by default and should only be disabled if you're using a custom backend (e.g., VictoriaMetrics, Loki) that requires a different validation logic. In that case, you should replace this plugin with your own validator plugin tailored to the target system.

Config

None

Env vars

None

Order requirement

This plugin must be placed first in the plugin chain to validate the SLO before any further processing is done.

Usage examples

Default usage (auto-loaded)

This plugin is automatically executed as the first step in the default plugin chain.

Explicit usage
chain:
  - id: "sloth.dev/core/validate/v1"

Documentation

Index

Constants

View Source
const (
	PluginVersion = "prometheus/slo/v1"
	PluginID      = "sloth.dev/core/validate/v1"
)

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(_ json.RawMessage, appUtils pluginslov1.AppUtils) (pluginslov1.Plugin, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL