graphite4s


License

License

GroupId

GroupId

com.yannmoisan
ArtifactId

ArtifactId

graphite4s_2.11
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

graphite4s
graphite4s
Project URL

Project URL

https://github.com/yannmoisan/graphite4s
Project Organization

Project Organization

com.yannmoisan
Source Code Management

Source Code Management

https://github.com/yannmoisan/graphite4s

Download graphite4s_2.11

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.typelevel : cats-effect_2.11 jar 2.0.0
com.typesafe.scala-logging : scala-logging_2.11 jar 3.9.2

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.2.1

Project Modules

There are no modules declared in this project.

graphite4s

Build Status Maven Central

A library for sending points to graphite.

Project goals

The aim is to provide a lightweight graphite client.

This library respects referentially transparency and is agnostic of effect type.

Getting started

Add the dependency to your project:

libraryDependencies += "com.yannmoisan" %% "graphite4s" % Version

Usage

import java.time.Instant
import cats.effect._

object Example {
  implicit val clock: Clock[IO] = Clock.create[IO]
  val graphite = new BatchGraphite(new JavaTCPClient("localhost", 2003))
  (for {
    now <- clock.realTime(MILLISECONDS)
    req <- graphite.send(GraphitePoint("path", 42.0, Instant.ofEpochMilli(now)))
  } yield req).unsafeRunSync()
}

Versions

Version
0.1.3
0.1.2