@mimik/metrics-helper

1.0.2 • Public • Published

metricsHelper

Example

const { Prometheus } = require('@mimik/metrics-helper');

metricsHelper~Prometheus()

Constructor for metrics. Allows the code using the library to create new metrics.

Kind: inner method of metricsHelper
Category: sync

metricsHelper~register()

register to accumualate all the results

Kind: inner method of metricsHelper
Category: sync

metricsHelper~APIRequestDuration()

Histogram metrics for API calls. The buckets are [5, 10, 20, 60, 150, 400, 1000] in ms.

Kind: inner method of metricsHelper
Category: sync

metricsHelper~HTTPRequestDuration()

Histogram metrics for HTTP requests. The buckets are [50, 150, 300, 600, 1200, 2000, 2800, 3600] in ms.

Kind: inner method of metricsHelper
Category: sync

metricsHelper~EventCounter()

Counter for the events dropped in the topic associated with the process.

Kind: inner method of metricsHelper
Category: sync

/@mimik/metrics-helper/

    Package Sidebar

    Install

    npm i @mimik/metrics-helper

    Weekly Downloads

    15

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.49 kB

    Total Files

    5

    Last publish

    Collaborators

    • sasan.raisdana
    • miburger
    • hofachiang
    • mimik-npm-editor
    • mimikopensource