runtimeobs

package
v0.16.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runtimeobs owns per-instance Prometheus registries. Label values are closed vocabularies; policy revisions and diagnostics belong in Status only.

Index

Constants

View Source
const Version = 1

Variables

This section is empty.

Functions

func NativeFailure

func NativeFailure(err error) string

NativeFailure deliberately discards diagnostic text and rule identifiers.

Types

type Monitor

type Monitor struct {
	Registry *prometheus.Registry
	// contains filtered or unexported fields
}

func New

func New(component ...string) *Monitor

func (*Monitor) Handler

func (m *Monitor) Handler() http.Handler

func (*Monitor) Health

func (m *Monitor) Health(ready bool, condition string)

func (*Monitor) Include

func (m *Monitor) Include(children ...*Monitor)

Include attaches distinct runtime components before serving starts.

func (*Monitor) NativeError

func (m *Monitor) NativeError(err error)

func (*Monitor) Observe

func (m *Monitor) Observe(stage string, start time.Time, outcome string)

func (*Monitor) Revision

func (m *Monitor) Revision(revision string)

func (*Monitor) Status

func (m *Monitor) Status() Status

type Status

type Status struct {
	Version        int    `json:"version"`
	ActiveRevision string `json:"active_revision"`
	Ready          bool   `json:"ready"`
	Degraded       bool   `json:"degraded"`
	Condition      string `json:"condition"`
}

Jump to

Keyboard shortcuts

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