prometheus-exporter

0.0.8 • Public • Published

prometheus-exporter NPM version Build Status Dependency Status Coverage percentage

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

Package Sidebar

Install

npm i prometheus-exporter

Weekly Downloads

8

Version

0.0.8

License

Apache-2.0

Last publish

Collaborators

  • danmademe