Versions in this module Expand all Collapse all v0 v0.4.0 Nov 17, 2026 v0.3.4 Nov 15, 2026 v0.3.3 Nov 14, 2026 v0.3.2 Nov 13, 2026 v0.3.1 Nov 10, 2026 Changes in this version + type DogMapping struct + Labels map[string]string + Match string + Name string type DogStatsDConfig + Mappings []DogMapping v0.3.0 Nov 8, 2026 v0.2.0 Nov 4, 2026 Changes in this version + func AsyncProfile(ctx context.Context, raw json.RawMessage, post PostProfile) error + func Emit(out Sink, check, plugin string, labels map[string]string, r Result, ...) + func EmitLocal(out Sink, script string, labels map[string]string, r LocalResult, at time.Time) + func JoinCluster(ctx context.Context, c ClusterConfig, out Sink) (func(string) bool, error) + func PluginName(p string) bool + func PprofScrape(ctx context.Context, raw json.RawMessage, post PostProfile) error + func ReadTextfiles(dir string, out Sink, now time.Time) + func Relabel(labels map[string]string, rules []RelabelRule) (map[string]string, bool) + func ValidateRelabel(rules []RelabelRule) error + type AsyncProfilerConfig struct + Binary string + Event string + Interval string + Match string + Seconds int + Service string + type CheckSpec struct + Args []string + Enabled *bool + Interval string + Labels map[string]string + Name string + Plugin string + Timeout string + type ClusterConfig struct + Peers []string + PeersDNS string + Refresh string + Self string + type DogStatsD struct + func NewDogStatsD() *DogStatsD + func (*DogStatsD) Run(ctx context.Context, raw json.RawMessage, out Sink) error + func (d *DogStatsD) Feed(datagram string) + func (d *DogStatsD) Flush(out Sink, now time.Time) + type DogStatsDConfig struct + Listen string + Socket string + type EnrichConfig struct + Refresh string + Rules []EnrichRule + type EnrichRule struct + Labels map[string]string + MatchAttr string + SDConfigs []SDConfig + TargetLabel string + func (r EnrichRule) Index(ts []TargetSpec) map[string]map[string]string + type Enricher struct + func (e *Enricher) Apply(attrs map[string]string) + func (e *Enricher) Run(ctx context.Context, raw json.RawMessage) error + type LocalChecks struct + func (LocalChecks) Run(ctx context.Context, raw json.RawMessage, out Sink) error + type LocalConfig struct + Dir string + Interval string + Labels map[string]string + Timeout string + type LocalResult struct + Host string + Service string + func ParseLocal(out string) []LocalResult + type Nagios struct + PluginDir string + func (n Nagios) Overlay(local, remote json.RawMessage) (json.RawMessage, error) + func (n Nagios) Run(ctx context.Context, raw json.RawMessage, out Sink) error + func (n Nagios) RunCheck(ctx context.Context, spec CheckSpec) Result + type NagiosConfig struct + Checks []CheckSpec + type Perf struct + Crit *float64 + Label string + Max *float64 + Min *float64 + UOM string + Value float64 + Warn *float64 + func ParsePerfdata(s string) ([]Perf, error) + type PostProfile func(ctx context.Context, service, sampleType string, gz []byte) error + type PprofConfig struct + CPUSeconds int + Interval string + Profiles []string + SDConfigs []SDConfig + Targets []TargetSpec + type PromConfig struct + Cluster *ClusterConfig + SDConfigs []SDConfig + ShardIndex int + ShardTotal int + Targets []TargetSpec + TargetsFile string + TextfileDir string + type Prometheus struct + Allow []string + Client *http.Client + func (p Prometheus) Overlay(local, remote json.RawMessage) (json.RawMessage, error) + func (p Prometheus) Run(ctx context.Context, raw json.RawMessage, out Sink) error + func (p Prometheus) Scrape(ctx context.Context, spec TargetSpec, out Sink, now time.Time) error + func (p Prometheus) Watch(ctx context.Context, every time.Duration, ...) + type RelabelRule struct + Action string + Modulus uint64 + Regex string + Replacement *string + Separator *string + SourceLabels []string + TargetLabel string + type RemoteCheck struct + Enabled *bool + Interval string + Labels map[string]string + Name string + Timeout string + type RemoteConfig struct + Checks []RemoteCheck + type Result struct + Perf []Perf + Status Status + Text string + type SDConfig struct + AccessKeyID string + Account string + ApplicationKey string + ApplicationSecret string + ClientID string + ClientSecret string + ConsumerKey string + DNSSuffix string + Datacenter string + DatacenterID string + DomainName string + Endpoint string + Files []string + Filters map[string]string + Host string + Kinds []string + MetricRelabelConfigs []RelabelRule + Names []string + Namespaces []string + Password string + Path string + Paths []string + Port int + Project string + Public bool + Query string + RecordType string + Refresh string + Region string + RelabelConfigs []RelabelRule + ResourceGroup string + Role string + Scheme string + SecretAccessKey string + Selector string + Servers []string + Services []string + SubscriptionID string + TenantID string + Token string + Type string + URL string + Username string + Zone string + type Sink interface + Gauge func(name, unit string, value float64, attrs map[string]string, at time.Time) + Sum func(name, unit string, value float64, attrs map[string]string, at time.Time) + type Status int + const Critical + const OK + const Unknown + const Warning + func Exit(code int) Status + func (s Status) String() string + type TargetSpec struct + HonorLabels bool + Interval string + Labels map[string]string + MetricRelabelConfigs []RelabelRule + RelabelConfigs []RelabelRule + SampleLimit int + ScrapeInterval string + ScrapeTimeout string + URL string