guiqi695/moon-prometheus-sdk/collectors does not have a README file

    BuildInfoCollector

    A constant collector that identifies the running application build.

    The collector exposes one moonbit_build_info gauge with value 1 and the constant labels revision, target, and version.

    BuildInfoCollector::collector

    Adapt this build-information metric for registration in a Registry.

    BuildInfoCollector::descriptor

    Return the immutable metric descriptor advertised by this collector.

    BuildInfoCollector::labels

    Return a detached copy of the build labels.

    BuildInfoCollector::new

    fn BuildInfoCollector::new(version : String, revision? : String, target? : String) -> BuildInfoCollector

    Construct build information for one application binary.

    revision and target default to "unknown" so callers can expose a useful version metric even when their build pipeline does not inject Git or backend metadata.

    Source Files