prometheus-exporter
v0.0.8
Published
Library to run the official prometheus node_exporter as a child process
Downloads
25
Maintainers
Readme
prometheus-exporter
Library to run the official prometheus node_exporter as a child process
About
This package will run the official node_exporter for prometheus as a child_process.
It's functional right now, but will add promises later.
For more information check out https://github.com/prometheus/node_exporter
Installation
$ npm install --save prometheus-exporter
Usage
const prometheusExporter = require('prometheus-exporter');
const options = {
collector: {
filesystem: {
'ignored-fs-types': '^devfs$'
}
},
log: {
format: 'logger:stdout?json=true'
}
};
prometheusExporter.init(options, function(error, success) {
if (error) {
throw error;
} else {
console.log('success');
}
});
Options
License
Apache-2.0 © Daniel Cherubini