1.2.0 • Published 3 years ago

@skroutz/cron-exporter v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Prometheus Cron Exporter

An exporter built to report various metrics of cron jobs by parsing the syslog files writen to by crond

Installation

Using the repository

  1. Run $ yarn to install dependencies
  2. Run the tests with $ yarn test
  3. Build the exporter with $ yarn build
  4. Run $ node ./build/index.js

Via npm package

  1. Run $ yarn global add @skroutz/cron-exporter
  2. The binary should be installed under $ <PATH_TO_YOUR_NODE_MODULES>/.bin/cron-exporter

Configuration

The exporter can be configured using environment variables

VariableDescriptionDefault Value
CE_HOSTThe host that the app should respond toundefined
CE_PORTThe port to run the exporter6748
CE_PREFIXMetric prefix for prometheus''
CE_APPEND_TIMESTAMPWether the metric should also be timestampedtrue
CE_ENDPOINTEndpoint that the exporter responds to'/metrics'
CE_LOGFILELogfile to parse data from'/var/log/cron.log'
CE_COLLECT_INTERVALInterval of the collecting process in milliseconds5
1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago