Apache Spark Integration for Metrics

A reporter for Apache Spark which announces measurements to a Spark Streaming application.

Лицензия

Лицензия

Категории

Категории

Metrics Тестирование приложения и мониторинг Monitoring
Группа

Группа

fr.ippon.spark.metrics
Идентификатор

Идентификатор

metrics-spark-reporter
Последняя версия

Последняя версия

1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Apache Spark Integration for Metrics
A reporter for Apache Spark which announces measurements to a Spark Streaming application.
Ссылка на сайт

Ссылка на сайт

https://github.com/ippontech/metrics-spark-reporter
Система контроля версий

Система контроля версий

https://github.com/ippontech/metrics-spark-reporter

Скачать metrics-spark-reporter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/fr.ippon.spark.metrics/metrics-spark-reporter/ -->
<dependency>
    <groupId>fr.ippon.spark.metrics</groupId>
    <artifactId>metrics-spark-reporter</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/fr.ippon.spark.metrics/metrics-spark-reporter/
implementation 'fr.ippon.spark.metrics:metrics-spark-reporter:1.2'
// https://jarcasting.com/artifacts/fr.ippon.spark.metrics/metrics-spark-reporter/
implementation ("fr.ippon.spark.metrics:metrics-spark-reporter:1.2")
'fr.ippon.spark.metrics:metrics-spark-reporter:jar:1.2'
<dependency org="fr.ippon.spark.metrics" name="metrics-spark-reporter" rev="1.2">
  <artifact name="metrics-spark-reporter" type="jar" />
</dependency>
@Grapes(
@Grab(group='fr.ippon.spark.metrics', module='metrics-spark-reporter', version='1.2')
)
libraryDependencies += "fr.ippon.spark.metrics" % "metrics-spark-reporter" % "1.2"
[fr.ippon.spark.metrics/metrics-spark-reporter "1.2"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
joda-time : joda-time jar 2.6
io.dropwizard.metrics : metrics-core jar 3.1.0
com.fasterxml.jackson.core : jackson-databind jar 2.4.4

Модули Проекта

Данный проект не имеет модулей.

metrics-spark-reporter

Dropwizard Metrics reporter for Apache Spark Streaming

This is a reporter for the [Metrics library] (https://dropwizard.github.io/metrics/3.1.0/) of [DropWizard] (http://dropwizard.io/), similar to the [graphite] (https://dropwizard.github.io/metrics/3.1.0/manual/graphite/#manual-graphite) or [ganglia] (https://dropwizard.github.io/metrics/3.1.0/manual/ganglia/#manual-ganglia) reporters, except that it reports to metrics-spark-receiver.

This reporter is using sockets for sending data to the Spark Streaming Receiver.

Metrics

The library Metrics provides 5 types of measure :

Configuration

In order to do a Spark reporting, you need to add the dependency :

<dependency>
	<groupId>fr.ippon.spark.metrics</groupId>
	<artifactId>metrics-spark-reporter</artifactId>
	<version>1.2</version>
</dependency>

And implement the SparkReporter like :

SparkReporter sparkReporter = SparkReporter.forRegistry(metricRegistry)
	.convertRatesTo(TimeUnit.SECONDS)
    .convertDurationsTo(TimeUnit.MILLISECONDS)
    .build("localhost", 9999);

sparkReporter.start(10, TimeUnit.SECONDS);

Test

There is two ways to test this Reporter :

Test sending data with the [JHipster] (http://jhipster.github.io/) sample which report to a Spark Streaming app implementing the java custom receiver [spark-jhipster] (https://github.com/ahars/spark-jhipster).

Send data by launching the JHipster sample with the Maven command :

$ mvn spring-boot:run

Display metrics received by launching one of those two classes of metrics-spark :

  • MetricsToConsole to display data in the console.
  • MetricsToES to send data to an ElasticSearch server via Spark in order to use Kibana.
fr.ippon.spark.metrics

Ippon Technologies

We deliver great apps with Java and Agile expertise

Версии библиотеки

Версия
1.2