Documentation
¶
Overview ¶
Package telemetry queries Prometheus for runtime verification signals.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a bounded Prometheus API reader.
func New ¶
New validates local configuration. Runtime endpoint failures are returned by Observe as unavailable evidence, never as fatal scan errors.
func (*Client) Observe ¶
Observe fixes one evaluation timestamp for all chunks and metric families. query_range intentionally evaluates one point (start=end): increase's range selector covers the complete lookback. Step is sent to the API, but does not divide totals into overlapping windows or truncate a partial final hour.
type Config ¶
type Config struct {
URL string
BearerToken string
CAFile string
CertFile string
KeyFile string
Lookback time.Duration
Step time.Duration
Timeout time.Duration
}
Config configures only the supplied Prometheus endpoint. Credentials never become report metadata; redirects are disabled to constrain their destination.
type Observation ¶
Observation describes observed events only. HTTP request events and TCP connection-opening events are combined; Share is their mixed event fraction, not a request-only fraction. UnknownReason is for control availability.