# level-prometheus-metrics

> Instruments a LevelDB Instance with Prometheus Compatible Metrics Collection

Latest version **2.1.0** (published 2015-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install level-prometheus-metrics
pnpm add level-prometheus-metrics
yarn add level-prometheus-metrics
bun add level-prometheus-metrics
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2015-11-11 |
| First published | 2015-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Erik Kristensen |
| Maintainers | ekristen |

## Links

- npm: https://www.npmjs.com/package/level-prometheus-metrics
- npm.io page: https://npm.io/package/level-prometheus-metrics

## Dependencies (2)

- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [prometheus-client-js](https://npm.io/package/prometheus-client-js.md) ^2.3.1

## Recent versions

- 2.1.0 (latest) — 2015-11-11
- 2.0.3 — 2015-11-11
- 2.0.2 — 2015-11-06
- 2.0.1 — 2015-11-06
- 2.0.0 — 2015-11-06
- 1.1.0 — 2015-10-29
- 1.0.0 — 2015-10-29

## README

# level-prometheus-metrics

Instruments a LevelDB instances with metric collection and can expose it via an HTTP port for collection by a Prometheus server. Uses https://github.com/ekristen/prometheus-client-js.

## Usage

This will expose metrics at `http://localhost:6754/metrics`

```javascript
var level = require('level')
var metrics = require('level-prometheus-metrics')

level('./db', function(err, db) {
  
  metrics(db)

  db.metrics.createServer().listen()
  
  setInterval(function() {
    db.put('one', 'two', function() {

    })
  }, 500)
})
```

---
_Source: https://npm.io/package/level-prometheus-metrics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
