Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ekristen/level-prometheus-metrics

Instruments a LevelDB Instance with Prometheus Compatible Metrics Collection
https://github.com/ekristen/level-prometheus-metrics

Last synced: about 2 months ago
JSON representation

Instruments a LevelDB Instance with Prometheus Compatible Metrics Collection

Awesome Lists containing this project

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)
})
```