Conversation
…tructions_total Documents dfinity/ic#11587, which adds the `million_round_instructions_total` field to the `subnet_metrics` management canister endpoint, plus dfinity/ic#11032, which added the endpoint itself and had not yet been documented here. - `public/references/ic.did`: `subnet_metrics_args`, `subnet_metrics_result` with all six fields, and the service method. - Interface spec: new `subnet_metrics` method section (fields, per-field staleness, which fields have a `/subnet/<subnet_id>/metrics` counterpart, and that the call is free), a transition rule in the abstract behavior, a pointer from the state tree's subnet metrics path, and changelog 0.69.0. - `docs/references/management-canister.md`: the method in the reference table of subnet and node information methods. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded: this duplicated the outstanding #333, which already specifies the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents dfinity/ic#11587, which adds the
million_round_instructions_totalfield to thesubnet_metricsmanagement canister endpoint.The endpoint itself was added by dfinity/ic#11032 (merged 2026-09-02) and had never been documented here, so there was nothing for the new field to attach to. This PR therefore covers both: the method and all six of its result fields.
Interface specification
subnet_metricsmethod section inmanagement-canister.md: canisters-only, EXPERIMENTAL, routed by thesubnet_idin the argument so a canister can read another subnet's metrics, and free (no cycles, and serving it does not contribute tomillion_round_instructions_total).block_heightis current; the aggregates are as of the end of the previous round, andcanister_state_bytesis only recomputed every 10 rounds.read_stateserves under/subnet/<subnet_id>/metrics, whileblock_heightandmillion_round_instructions_totalhave no path there.million_round_instructions_totalis described as what it is: instructions in units of one million, rounded up, covering the scheduler's per-execution and per-canister overheads and non-Wasm charges (compilation, chunk assembly, snapshots), so not a Wasm instruction meter. Its counter starts when a subnet's replica begins tracking it, not at subnet creation.abstract-behavior.md, matching the shape of the node metrics rule (metrics values are implementation-specific)./subnet/<subnet_id>/metricspath inindex.mdto the method.public/references/ic.did:subnet_metrics_args,subnet_metrics_result, and the service method.0.69.0.Reference
docs/references/management-canister.md: the method under "Subnet and node information", besidenode_metrics_historyandsubnet_info.Verification
didc check public/references/ic.didpasses.npm run buildwas not run:npmis unavailable in the environment this was written in. The validator's em-dash, forbidden-pattern, and internal link/anchor checks were run by hand over the five changed pages and are clean. CI is the gate.🤖 Generated with Claude Code