ic-metrics-assert

Crates.ioic-metrics-assert
lib.rsic-metrics-assert
version0.1.1
created_at2025-06-17 06:18:30.547495+00
updated_at2025-06-17 14:12:17.794313+00
descriptionFluent assertions for metrics
homepage
repositoryhttps://github.com/dfinity/ic
max_upload_size
id1715274
size88,458
cross-chain-team (github:dfinity:cross-chain-team)

documentation

https://internetcomputer.org/docs/

README

IC Metrics Assert

Fluent assertions for Prometheus-style metrics exposed by Internet Computer (IC) canisters.

ic-metrics-assert provides regex-based assertions for testing metrics endpoints of IC canisters. It supports both synchronous and asynchronous contexts, and integrates with PocketIc for local canister testing.

Features

  • Query metrics from canister /metrics HTTP endpoint
  • Fluent regex-based assertions on canister metrics
  • Support for both sync and async test flows
  • Optional pocket_ic feature for use with PocketIc environments
Commit count: 33125

cargo fmt