0.0.8 • Published 7 years ago

prometheus-exporter v0.0.8

Weekly downloads
61
License
Apache-2.0
Repository
github
Last release
7 years ago

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

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago