Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@skroutz/cron-exporter

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skroutz/cron-exporter

Prometheus exporter for cron metrics

latest
npmnpm
Version
1.2.0
Version published
Maintainers
6
Created
Source

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

  • Run $ yarn to install dependencies
  • Run the tests with $ yarn test
  • Build the exporter with $ yarn build
  • Run $ node ./build/index.js

Via npm package

  • Run $ yarn global add @skroutz/cron-exporter
  • 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

FAQs

Package last updated on 02 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts