Skip to main content

Resource Metric Ontology

Monitoring Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
RESOURCE METRIC ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Monitoring Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/monitoring-entities/resource-metric-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level Flow Algebra mapping; not a verified transcription of the source page.

1. PURPOSE
Represent a resource metric as a typed, timestamped observation of the consumption, capacity, availability or performance of a computational resource. Support reliable collection, normalisation, interpretation, alerting and bounded recursive investigation.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current measurements, resource identities and time-window observations.
R_t: relationships among resources, counters, gauges, collectors and alerts.
B_t: units, valid ranges, access permissions, sampling rules and alert thresholds.
K_t: metric definitions, historical baselines, resource topology and provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The probability expression is a ranking abstraction; an implementation must define and calibrate its scoring function.

3. ENTITY MODEL
ResourceMetric: {metric_id, resource_id, name, metric_kind, value, unit, timestamp, source, quality, labels}.
Resource: {resource_id, resource_type, capacity, owner, location}.
MeasurementSource: {collector_id, method, sampling_interval, clock_quality}.
MetricDefinition: {name, semantic_type, unit, aggregation, valid_range, monotonicity}.
MetricWindow: {start, end, samples, aggregation, missing_data_policy}.
ThresholdPolicy: {metric_id, comparison, threshold, duration, severity}.
AlertEvent: {alert_id, metric_id, observed_value, policy_id, state, evidence}.
Metric kinds include gauge, cumulative counter, delta counter, histogram and derived rate; they are not interchangeable.

4. RELATIONSHIP GRAPH
Resource --exposes--> ResourceMetric
MeasurementSource --observes--> Resource
ResourceMetric --conforms_to--> MetricDefinition
ResourceMetric --belongs_to--> MetricWindow
ThresholdPolicy --evaluates--> ResourceMetric
ThresholdPolicy --may_generate--> AlertEvent
Resource --depends_on--> Resource
AlertEvent --references--> MeasurementSource

5. CORE FLOWS
FLOW A — COLLECT
Input: resource_id, metric definition, collector and sample time.
Expand: discover permitted collectors and metric identifiers.
Validate: source authenticity, resource match, timestamp, type and unit.
Output: accepted observation or a recorded collection failure.

FLOW B — NORMALISE
Input: accepted observations.
Expand: unit conversion, labels, counter reset handling and clock alignment.
Validate: compatible dimensions, non-negative values where required, no invalid division.
Output: canonical observations with original values retained for audit.

FLOW C — AGGREGATE
Input: a time window and homogeneous observations.
Expand: mean, minimum, maximum, sum, quantiles or rate as appropriate.
Validate: sampling coverage, counter semantics, aggregation compatibility.
Output: aggregate plus coverage and uncertainty metadata.

FLOW D — EVALUATE
Input: normalised metric, baseline and threshold policy.
Expand: threshold crossings, persistence, correlated resource conditions.
Validate: duration, hysteresis, stale-sample policy and deduplication.
Output: healthy, warning, critical or unknown with supporting evidence.

FLOW E — INVESTIGATE
Input: anomalous resource metric.
Expand: linked CPU, memory, storage, network and service metrics.
Validate: permission, relevance, time alignment and bounded depth.
Output: candidate explanations with evidence, not unsupported causal certainty.

6. INFERENCE RULES
R1: If a gauge exceeds its threshold for the configured duration and samples are valid, emit a threshold event.
R2: If a monotonic counter decreases unexpectedly, classify the interval as reset/wrap/unknown before computing a rate.
R3: If elapsed_time <= 0, reject rate computation.
R4: If metric units differ dimensionally, reject direct comparison until a valid conversion exists.
R5: If sample age exceeds freshness policy, report UNKNOWN rather than HEALTHY.
R6: If missing samples exceed permitted coverage, mark the aggregate incomplete.
R7: If resource usage exceeds reported capacity, flag a consistency issue; do not automatically infer a physical impossibility because definitions may differ.
R8: Correlated anomalies suggest investigative paths but do not prove causation.

7. MINI RECURSION ENGINE
function inspect(metric, depth, visited):
    if depth >= MAX_DEPTH or metric.id in visited: return STOP
    visited.add(metric.id)
    observation = collect_and_validate(metric)
    if observation.invalid: return UNKNOWN_WITH_REASON
    assessment = evaluate(normalise(observation))
    if assessment.anomalous:
        for related in bounded_related_metrics(metric):
            inspect(related, depth + 1, visited)
    return assessment_with_evidence
Termination requires finite MAX_DEPTH, bounded fan-out, finite time budget and a visited set.

8. WORKED EXAMPLE
A network interface counter reads 10,000,000 bytes at 12:00:00 and 16,000,000 bytes at 12:00:30.
Delta = 6,000,000 bytes over 30 seconds.
Rate = 200,000 bytes/second = 1,600,000 bits/second (1.6 Mbit/s).
This estimate is valid only if counter semantics are compatible and no unhandled reset or wrap occurred.

9. BOUNDARIES AND CONDITIONAL GUARANTEES
Monitoring cannot guarantee complete observability or correct diagnosis. Alerts depend on accurate instrumentation, time synchronisation, policies and data quality. A bounded traversal guarantees termination under its stated limits, not that every relevant fault is discovered. Retain provenance; restrict sensitive telemetry access; avoid embedding secrets in labels.

10. SEMANTIC EQUIVALENCE
Equivalent measurements must refer to the same resource scope, metric definition, unit dimension, aggregation window and counter/gauge semantics. For example, 1,600,000 bit/s equals 200,000 byte/s under decimal units; CPU utilisation percentage is not equivalent to CPU time consumed.

11. PROVENANCE AND CITATION
Title: Resource Metric Ontology — Flow Algebra v1.0
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/monitoring-entities/resource-metric-ontology.html
Citation required when reusing this constructed mapping under the project's Open Research Licence.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ