PrometheusInfo
Composite 212 v411pallet_subtensor::pallet::PrometheusInfo
About This Type
Prometheus metrics endpoint info for a neuron.
Contains the IP address and port where a neuron exposes Prometheus metrics for monitoring and observability.
Common Uses
- • Monitor neuron health
- • Build dashboards for subnet performance
Fields (5)
SCALE Encoding
- Rule
- 5 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 5 fields = block: u64, version: u32, ip: u128, port: u16, ip_type: u8
0x<field0><field1><field2><field3><field4>field 0 block: u64field 1 version: u32field 2 ip: u128field 3 port: u16field 4 ip_type: u8Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode PrometheusInfo
const value = registry.createType("PrometheusInfo", {
block: 1_000_000_000n,
version: 1000000,
ip: 1_000_000_000n,
port: 1,
ip_type: 42
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 212
- Kind
- Composite
- Path
- pallet_subtensor::pallet::PrometheusInfo
- Runtime
- v411