File Sink Extra

File sink for metrics client.

Лицензия

Лицензия

Категории

Категории

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

Группа

com.arpnetworking.metrics.extras
Идентификатор

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

file-sink-extra
Последняя версия

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

0.11.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

File Sink Extra
File sink for metrics client.
Ссылка на сайт

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

https://github.com/ArpNetworking/metrics-file-sink-extra
Система контроля версий

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

https://github.com/arpnetworking/metrics-file-sink-extra

Скачать file-sink-extra

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

<!-- https://jarcasting.com/artifacts/com.arpnetworking.metrics.extras/file-sink-extra/ -->
<dependency>
    <groupId>com.arpnetworking.metrics.extras</groupId>
    <artifactId>file-sink-extra</artifactId>
    <version>0.11.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.arpnetworking.metrics.extras/file-sink-extra/
implementation 'com.arpnetworking.metrics.extras:file-sink-extra:0.11.2'
// https://jarcasting.com/artifacts/com.arpnetworking.metrics.extras/file-sink-extra/
implementation ("com.arpnetworking.metrics.extras:file-sink-extra:0.11.2")
'com.arpnetworking.metrics.extras:file-sink-extra:jar:0.11.2'
<dependency org="com.arpnetworking.metrics.extras" name="file-sink-extra" rev="0.11.2">
  <artifact name="file-sink-extra" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.arpnetworking.metrics.extras', module='file-sink-extra', version='0.11.2')
)
libraryDependencies += "com.arpnetworking.metrics.extras" % "file-sink-extra" % "0.11.2"
[com.arpnetworking.metrics.extras/file-sink-extra "0.11.2"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.30
com.arpnetworking.metrics : metrics-client jar 0.11.2
com.arpnetworking.commons : commons jar 1.18.3
com.google.code.findbugs : jsr305 jar 3.0.2
org.aspectj : aspectjrt jar 1.9.2

provided (1)

Идентификатор библиотеки Тип Версия
com.arpnetworking.build : build-resources jar 2.0.2

runtime (1)

Идентификатор библиотеки Тип Версия
com.github.spotbugs : spotbugs-annotations jar 4.0.3

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

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

Metrics Client File Sink

License: Apache 2 Travis Build Maven Artifact Javadocs

File sink for metrics client.

Usage

Add Dependency

Determine the latest version of the library in Maven Central.

Maven

Add a dependency to your pom:

<dependency>
    <groupId>com.arpnetworking.metrics.extras</groupId>
    <artifactId>file-sink-extra</artifactId>
    <version>VERSION</version>
</dependency>

The Maven Central repository is included by default.

Gradle

Add a dependency to your build.gradle:

compile group: 'com.arpnetworking.metrics.extras', name: 'file-sink-extra', version: 'VERSION'

Add the Maven Central Repository into your build.gradle:

repositories {
    mavenCentral()
}

SBT

Add a dependency to your project/Build.scala:

val appDependencies = Seq(
    "com.arpnetworking.metrics.extras" % "file-sink-extra" % "VERSION"
)

The Maven Central repository is included by default.

Set as Sink on MetricsFactory

To override the default sink on the MetricsFactory do the following:

final MetricsFactory metricsFactory = new TsdMetricsFactory.Builder()
        .setSinks(Collections.singletonList(new FileSink.Builder().build())
        .build();

In most cases the default arguments are sufficient; however, you may also customize the FileSink like this:

final MetricsFactory metricsFactory = new TsdMetricsFactory.Builder()
        .setSinks(Collections.singletonList(
                new ApacheHttpSink.Builder()
                        .setDirectory(new File("/var/log"))
                        .setName("metrics")
                        .setExtension(".ts")
                        .setMaxHistory(2)
                        .setMaxFileSize("10MB")
                        .setCompress(false)
                        .setImmediateFlush(true)
                        .setDropWhenQueueFull(true)
                        .setMaxQueueSize(1000)
                        .build())
        .build();

For more information on configuring MetricsFactory please see metrics-client-java.

Steno

The library contains a second sink StenoFileSink for backwards compatibility; however, the format is deprecated and scheduled for removal from the library. We strongly recommend migrating to FileSink or apache-http-sink-extra.

Building

Prerequisites:

  • JDK8 (Or Invoke with JDKW)

Building:

metrics-file-sink-extra> ./mvnw verify

To use the local version you must first install it locally:

metrics-file-sink-extra> ./mvnw install

You can determine the version of the local build from the pom file. Using the local version is intended only for testing or development.

You may also need to add the local repository to your build in order to pick-up the local version:

  • Maven - Included by default.
  • Gradle - Add mavenLocal() to build.gradle in the repositories block.
  • SBT - Add resolvers += Resolver.mavenLocal into project/plugins.sbt.

License

Published under Apache Software License 2.0, see LICENSE

© Inscope Metrics Inc., 2017

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

Версия
0.11.2
0.11.1
0.11.0
0.8.1
0.8.0
0.7.0
0.6.0