• Stars
    star
    270
  • Rank 152,189 (Top 3 %)
  • Language
    Java
  • License
    Other
  • Created almost 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A reporter for metrics which announces measurements to an InfluxDB server.

CC0
To the extent possible under law, Novaquark has waived all copyright and related or neighboring rights to this work.

Build Status Bitdeli Badge Download

The library provide :

  • a lighter client than influxdb-java to push only series to an InfluxDB server.
  • A reporter for metrics which announces measurements.

The library provide a lighter client than influxdb-java to push only metrics.

Dependencies :

  • slf4j-api for logging.
  • metrics-core, to provide, if you use InfluxdbReporter.

Install:

Released

 dependencies {
	compile 'com.github.davidb:metrics-influxdb:0.9.3'
 }

Dev

 repositories {
    maven { url "https://jitpack.io" }
 }
 dependencies {
	compile 'com.github.davidb:metrics-influxdb:-SNAPSHOT'
 }

Usage :

Using the Builder API and its defaults, it is easy to use InfluxdbReporter:

ScheduledReporter reporter = InfluxdbReporter.forRegistry(registry).build();
reporter.start(10, TimeUnit.SECONDS);

With the previous simple configuration, all defaults will be used, mainly:

  • protocol: HTTP
  • server: 127.0.0.1
  • port: 8086
  • authentication: none
  • database name: metrics
  • rates: converted to TimeUnit.SECONDS
  • duration: converted to TimeUnit.MILLISECONDS
  • idle metrics: do not report
  • influxdb protocol: v09 line protocol
  • ...

But you are free of course to define all settings by yourself :

final ScheduledReporter reporter = InfluxdbReporter.forRegistry(registry)
    .protocol(new HttpInfluxdbProtocol("http", "influxdb-server", 8086, "admin", "53CR3TP455W0RD", "metrics"))
    .convertRatesTo(TimeUnit.SECONDS)
    .convertDurationsTo(TimeUnit.MILLISECONDS)
    .filter(MetricFilter.ALL)
    .skipIdleMetrics(false)
    .tag("cluster", "CL01")
    .tag("client", "OurImportantClient")
    .tag("server", serverIP)
    .transformer(new CategoriesMetricMeasurementTransformer("module", "artifact"))
    .build();
reporter.start(10, TimeUnit.SECONDS);

And if you are still using v08 influxdb

final InfluxdbReporter reporter = InfluxdbReporter
    .forRegistry(registry)
    .protocol(new HttpInfluxdbProtocol("influxdb-server", 8086, "admin", "53CR3TP455W0RD", "metrics"))
    .v08()
    .build();
...

More Repositories

1

scala-maven-plugin

The scala-maven-plugin (previously maven-scala-plugin) is used for compiling/testing/running/documenting scala code in maven.
Java
554
star
2

kubectl-view-allocations

kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)
Rust
526
star
3

yuicompressor-maven-plugin

maven's plugin to compress (Minify / Ofuscate / Aggregate) Javascript files and CSS files using YUI Compressor
JavaScript
121
star
4

scala-archetype-simple

a simple maven archetype for project in scala
Scala
109
star
5

tracing-opentelemetry-instrumentation-sdk

Middlewares and tools to integrate axum + tracing + opentelemetry
Rust
73
star
6

rust-cargo-make

🛠️ GitHub Action to install `cargo-make` command
TypeScript
28
star
7

livereload-jvm

A micro http-server compatible with LiveReload 2 (protocol). Should be used at compile/build-time.
JavaScript
23
star
8

sandbox_axum_observability

Sandbox to experiment axum and observability
Rust
23
star
9

vscaladoc

A variation of scaladoc : an API generator for project written in Scala
Scala
22
star
10

handlebars_misc_helpers

A collection of helpers for handlebars (rust) to manage string, json, yaml, toml, path, file, http request.
Rust
21
star
11

git2_credentials

Provide credentials function to used with git2::RemoteCallbacks.credentials
Rust
19
star
12

gradle-getdown-plugin

A gradle plugin to bundle java app + jre with getdown support
Groovy
16
star
13

scalacs

[experimental] http server to run tools like compilation (target to replace fsc+fsc-server)
Scala
10
star
14

sandbox_bazel

explorations of bazel, support for a serie of articles and to experiment stuff on bazel.
Starlark
9
star
15

winstone-maven-plugin

Embed your warfile into/with the winstone JAR itself. This allows an all-in-one container plus web-application JAR file to be downloaded, and then unpacked at execution time.
8
star
16

vscaladoc2_www

website to display json api generated by vscaladoc2_genjson
JavaScript
6
star
17

jme3_ext_deferred

[experimental] a deferred rendering for jME3
Xtend
6
star
18

ld47_keep_inside

My game for Ludum Dare 47
Rust
6
star
19

git-find

A tool (cli & lib) to find local git repositories.
Rust
5
star
20

jme3_ext_spatial_explorer

A debug tool for jmonkeyengine : display a window to browse the content of node (root of the scene by default).
Java
5
star
21

dgraph_client-rs

A rust client for dgraph.
Rust
5
star
22

dartemis_toolbox

A set of addons (Component, System, helper, ...) to use with dartemis
Dart
5
star
23

applet-maven-plugin

maven's plugin to generate jnlp, html, js, to merge jars, to sign, to pack200 jar (with support for nativelib, proguard,...)
Java
5
star
24

scala-tools-parent

shared description pom for maven project under groupId org.scala-tools
4
star
25

jme3_skel

my project skeleton for jme 3.0 projects (gradle based)
Java
4
star
26

spoon-maven-plugin

A maven plugin to use spoonlet(s) in a maven 2 build. Spoonlets (and dependencies) are downloaded if needed.
Java
4
star
27

run_on_jvm

A tool to run jvm script (java, scala, ...) with dependencies
Java
3
star
28

forum-migration

Scripts for the great forum migration..
Ruby
3
star
29

vscaladoc2_demoprj

Sample project use to test vscaladoc2
Scala
2
star
30

reabuilder

experiment : a generic fs reactive/continuous builder
Scala
2
star
31

net.alchim31.eclipse.console

eclipse console addons
Java
2
star
32

yascaladt-doc

Documentation about YaScalaDT
2
star
33

rtmidi-jvm

A wrapper/adapter for RtMidi
C++
2
star
34

plob

[experimental] PipeLine Of Builders : an event driven / reactive build tool
Scala
1
star
35

davidB

1
star
36

glf

a webgl wrapper in dart
Dart
1
star
37

davidb.github.com

my site
1
star
38

jme3_lib2repo

install jme3 (jmonkeyengine 3.0) into local maven repository
Groovy
1
star
39

vdrones

[experimental] my first dart application/game
Dart
1
star
40

org.scala-ide.qa

place to store integration tests, sample projects for scalaIDE (eclipse plugin)
Java
1
star
41

xhat

[experimental] p2p chat build with rust + libp2p + flutter
1
star
42

labs_cooking_microservices_with_rust

laboratory for using Rust in microservices environment
Rust
1
star
43

yascaladt

Yet Another Scala Plugin for Eclipse
Java
1
star
44

scala_sugar_in_java

Source code my blog series "Scala sugar in Java"
Java
1
star
45

html_toolbox

A toolbox for commons operations on html (for dartlang).
Dart
1
star
46

nvim

My NeoVim configuration files
Vim Script
1
star
47

logo

source of the Logo
1
star
48

pseudobench_graphql

My pseudo benchmark/comparaison between graphQL impl
Go
1
star
49

vscaladoc2_genjson

VScaladoc2 Json Generator : generate api from scala source in json format
Scala
1
star
50

alchim31-maven-parent

parent pom for alchim31 maven's plugin
1
star
51

shader_editor

[wip] a shader editor (glsl vert + frag)
CSS
1
star
52

prj-scala-only

a demo project used as archetype/basic project with sample of test
Scala
1
star
53

.vim

my vim configuration directory
Vim Script
1
star
54

templates

repository to host my collections of templates to used with https://github.com/ffizer/ffizer.
HTML
1
star