spark-monitoring
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

spark-monitoring

Build Status Coverage Status

A tool to extract metrics from Spark Applications, it applies to Streaming and Jobs.

Current Status

Stable.

Installation

npm install spark-monitoring

Features

  • Extract metrics from Streaming Jobs;
  • Extract metrics from Normal Jobs;
  • Send these metrics to Zabbix.

Send metrics to Zabbix

To get usage details, type this:

zabbix-spark-monitor --help

To use the tool on your application

Import the required class as follow:

import { SparkMonitoring } from '../../lib/spark-monitoring';

And use the method getApplicationStats to get statistics for an specific application.

The output follow this example:

{
  "allocatedMB": 5632,
  "allocatedVCores": 4,
  "elapsedTime": 1050926592,
  "id": "application_1569147216125_1386",
  "jobStats": [
    {
      "max": 25,
      "mean": 17.6,
      "min": 11,
      "name": "DataCollection",
      "window": 156
    }
  ],
  "memorySeconds": 5918796398,
  "name": "51-minimum-gain",
  "pendingRecords": 2561,
  "processedRecords": 951,
  "runningContainers": 4,
  "runningJobs": 1,
  "streaming": true,
  "totalDelay": 30000,
  "vcoreSeconds": 4203689
}

Package Sidebar

Install

npm i spark-monitoring

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

123 kB

Total Files

48

Last publish

Collaborators

  • addomafi