Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ekristen/level-prometheus-metrics
- Owner: ekristen
- License: mit
- Created: 2015-10-29T17:47:48.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-11T20:41:46.000Z (about 9 years ago)
- Last Synced: 2024-04-14T20:10:13.142Z (9 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)
})
```