1.2.6 • Published 5 months ago

@libp2p/simple-metrics v1.2.6

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
5 months ago

@libp2p/simple-metrics

libp2p.io Discuss codecov CI

Simple in-memory metrics gathering for libp2p

About

Stores metrics in memory and periodically invokes a configured callback to receive them.

Example

import { createLibp2p } from 'libp2p'
import { simpleMetrics } from '@libp2p/simple-metrics'

const node = await createLibp2p({
  // ... other options
  metrics: simpleMetrics({
    onMetrics: (metrics) => {
      // do something with metrics
    }
  }),
  intervalMs: 1000 // default 1s
})

Install

$ npm i @libp2p/simple-metrics

Browser <script> tag

Loading this module through a script tag will make it's exports available as Libp2pSimpleMetrics in the global namespace.

<script src="https://unpkg.com/@libp2p/simple-metrics/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

1.2.6-0a3406a05

5 months ago

1.2.6-c2ff2e454

5 months ago

1.2.6

5 months ago

1.2.5-7383821e1

5 months ago

1.2.6-ad5cfd66a

5 months ago

1.2.5-a657bbd2e

5 months ago

1.2.5-d34642db1

5 months ago

1.2.6-a5cd8cfbe

5 months ago

1.2.5-717731e49

5 months ago

1.2.5

5 months ago

1.2.4-4521cf1f7

5 months ago

1.2.4-3244ed086

5 months ago

1.2.4-aa8de9fd3

5 months ago

1.2.4-3bc9769b8

5 months ago

1.2.4-75301ac7d

5 months ago

1.2.4-e6b4158c6

5 months ago

1.2.4

6 months ago

1.2.3-e99e8f448

6 months ago

1.2.3-58784abf7

6 months ago

1.2.3-dad979f9b

6 months ago

1.2.3-27b2fa6b6

6 months ago

1.2.3-24fa1d5af

6 months ago

1.2.3-b4f02a637

6 months ago

1.2.3-82bd42bcf

6 months ago

1.2.3-661d6586a

6 months ago

1.2.3-35b48025c

6 months ago

1.2.3-80e798cdc

6 months ago

1.2.3-a390db4a4

6 months ago

1.2.3-934a891f9

6 months ago

1.2.3-0d326d102

6 months ago

1.2.3-32c176fd5

6 months ago

1.2.4-5d199f9b6

6 months ago

1.2.3-d4da56961

6 months ago

1.2.3-d7a818e8e

6 months ago

1.2.3-d9c7e0f7e

6 months ago

1.2.3

6 months ago

1.2.2-0c5957836

6 months ago

1.2.2-980038477

6 months ago

1.2.2-c5988cce8

6 months ago

1.2.2-fa83ee1c7

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0-7f7ec82ae

6 months ago

1.2.1-c258b35af

6 months ago

1.2.0-b3272cfce

6 months ago

1.2.0

6 months ago

1.1.7-c628c44c5

6 months ago

1.1.7-21fe841f2

6 months ago

1.1.7-6ccbb06f0

7 months ago

1.1.7-4fd7eb2e1

7 months ago

1.1.7-34455b5f2

7 months ago

1.1.6-1210884ed

7 months ago

1.1.7

7 months ago

1.1.6-18dd3cb26

7 months ago

1.1.6-d101aac4b

7 months ago

1.1.5-5214dec4a

7 months ago

1.1.5-e1ca9cced

7 months ago

1.1.6-7cd984569

7 months ago

1.1.5-a142bb642

7 months ago

1.1.5-2bbaf4361

7 months ago

1.1.6

7 months ago

1.1.5-c010d575c

7 months ago

1.1.5-81ebe4e47

7 months ago

1.1.5-71e5f7a5b

7 months ago

1.1.5-b6681bd25

7 months ago

1.1.5-df330695a

7 months ago

1.1.5-dd7b329c4

7 months ago

1.1.5-2265e59ba

7 months ago

1.1.5-737b3ea5b

7 months ago

1.1.5-1675adee2

7 months ago

1.1.5-50b897139

7 months ago

1.1.5-e211b46cc

7 months ago

1.1.5-7655e5200

7 months ago

1.0.2-169c9d85e

10 months ago

1.1.0-15eb66428

9 months ago

1.1.2-8b3114292

9 months ago

1.0.3

10 months ago

1.1.2-40902d99b

9 months ago

1.0.3-863b3de03

10 months ago

1.1.2-928801a80

9 months ago

1.1.2-a82ff8221

8 months ago

1.0.2-769461d3b

10 months ago

1.1.1-151bc46fb

9 months ago

1.1.0-af85a7cad

9 months ago

1.0.2-bc6556f96

10 months ago

1.1.0-b0b6cae12

9 months ago

1.1.1-e9b6a242a

9 months ago

1.0.2-7aec7bd45

10 months ago

1.1.4-1dfb74e79

8 months ago

1.0.3-44791342

10 months ago

1.0.3-d1f1c2be7

10 months ago

1.1.1-ce6da9896

9 months ago

1.1.5-3c8dd5bbf

8 months ago

1.1.4-c5dba70a9

8 months ago

1.1.2-a130993ed

9 months ago

1.1.4-7939dbd5c

8 months ago

1.1.0-21cf7bc56

9 months ago

1.0.3-8e4fdcde9

10 months ago

1.1.1-3319ff41e

9 months ago

1.1.1

9 months ago

1.1.0

10 months ago

1.1.1-e1f0b307c

9 months ago

1.1.0-3b9cbf7d8

9 months ago

1.0.2-f4e572cd6

10 months ago

1.1.2-73f2b6b6d

9 months ago

1.0.2-90d10b565

10 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.2-4a994c5ef

9 months ago

1.1.3

8 months ago

1.1.2

9 months ago

1.0.2-6011d3697

10 months ago

1.0.2-f6fe2cc3c

10 months ago

1.1.2-a8ec2bcb7

8 months ago

1.0.2-62e32252a

10 months ago

1.1.0-6573cb8b0

9 months ago

1.0.2-7464dc00c

10 months ago

1.0.2-440c9b360

10 months ago

1.1.5-359265a3a

8 months ago

1.0.2-12106b5b0

10 months ago

1.0.2-757fb2674

10 months ago

1.0.2-352699ab5

10 months ago

1.0.3-9e0236627

10 months ago

1.1.4-0edbfe7af

8 months ago

1.1.2-34cf1f7cd

8 months ago

1.1.3-f30e2ee8d

8 months ago

1.0.2-4bd8e4f79

10 months ago

1.1.0-0b55625d1

10 months ago

1.0.2-167bf2b3c

10 months ago

1.1.1-d1aec4d9f

9 months ago

1.1.0-abb9f90c7

9 months ago

1.1.3-944935f8d

8 months ago

1.0.3-94cac115a

10 months ago

1.0.2-e69a2f1b6

10 months ago

1.0.2

11 months ago

1.0.1-48444f750

11 months ago

1.0.1-1cd5aae11

11 months ago

1.0.1-1a41c28bb

11 months ago

1.0.1-1cc6a9405

11 months ago

1.0.1-8214dcfb0

11 months ago

1.0.1-5b7380259

11 months ago

1.0.1-7de56f244

11 months ago

1.0.1-1eb5b2713

11 months ago

1.0.1-a3e8beabd

11 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago