Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
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

  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

FAQs

Package last updated on 25 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc