dropwizard-wavefront

A Dropwizard Metrics reporter for Wavefront

Лицензия

Лицензия

Категории

Категории

DropWizard Контейнер Микросервисы
Группа

Группа

org.whispersystems
Идентификатор

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

dropwizard-wavefront
Последняя версия

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

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

dropwizard-wavefront
A Dropwizard Metrics reporter for Wavefront
Ссылка на сайт

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

https://github.com/WhisperSystems/dropwizard-wavefront
Система контроля версий

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

https://github.com/WhisperSystems/dropwizard-wavefront

Скачать dropwizard-wavefront

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

<!-- https://jarcasting.com/artifacts/org.whispersystems/dropwizard-wavefront/ -->
<dependency>
    <groupId>org.whispersystems</groupId>
    <artifactId>dropwizard-wavefront</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.whispersystems/dropwizard-wavefront/
implementation 'org.whispersystems:dropwizard-wavefront:0.1'
// https://jarcasting.com/artifacts/org.whispersystems/dropwizard-wavefront/
implementation ("org.whispersystems:dropwizard-wavefront:0.1")
'org.whispersystems:dropwizard-wavefront:jar:0.1'
<dependency org="org.whispersystems" name="dropwizard-wavefront" rev="0.1">
  <artifact name="dropwizard-wavefront" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.whispersystems', module='dropwizard-wavefront', version='0.1')
)
libraryDependencies += "org.whispersystems" % "dropwizard-wavefront" % "0.1"
[org.whispersystems/dropwizard-wavefront "0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
io.dropwizard : dropwizard-metrics jar 0.9.0-rc3

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

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

dropwizard-wavefront

A Dropwizard Metrics reporter for wavefront.

Installing

Add the maven dependency to your project:

<dependency>
  <groupId>org.whispersystems</groupId>
  <artifactId>dropwizard-wavefront</artifactId>
  <version>{latest_version_here}</version>
</dependency>

Then you just need to tell Dropwizard where to find the reporter. From your module base dir:

$ mkdir -p /resources/META-INF/services/
$ echo "org.whispersystems.wavefront.WavefrontMetricsReporterFactory" > /resources/META-INF/services/io.dropwizard.metrics.ReporterFactory

Configuring

Add the following to your configuration yaml file:

metrics:
  reporters:
    - type: wavefront
      token: {your api token}
      hostname: "metrics.wavefront.com"
      frequency: 60 seconds

Done! Your metrics should now report to wavefront every 60 seconds.

Additional Gauges

There are system gauges for network, cpu, file descriptors, and memory available as well.

To use them:

environment.metrics().register(name(CpuUsageGauge.class, "cpu"), new CpuUsageGauge());
environment.metrics().register(name(FreeMemoryGauge.class, "free_memory"), new FreeMemoryGauge());
environment.metrics().register(name(NetworkSentGauge.class, "bytes_sent"), new NetworkSentGauge());
environment.metrics().register(name(NetworkReceivedGauge.class, "bytes_received"), new NetworkReceivedGauge());
environment.metrics().register(name(FileDescriptorGauge.class, "fd_count"), new FileDescriptorGauge());
org.whispersystems

Open Whisper Systems

The Signal repositories have moved to github.com/signalapp

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

Версия
0.1