@stephen-shopopop/node-metrics
    Preparing search index...

    A plugin that captures the process start time in seconds since the Unix epoch.

    Useful for monitoring and observability tools that require the process start time.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = ProcessUpTimePlugin.name

    Methods

    • Captures and records the process start time in seconds since the Unix epoch.

      Parameters

      • ctx: MetricsContext

        The metrics context used to store the 'process_start_time_seconds' metric. The value is calculated as the current time in seconds minus the process uptime.

      Returns void