Giter Site home page Giter Site logo

prometheus_client_scala's Introduction

Prometheus client for Scala

Join the chat at https://gitter.im/prometheus_client_scala/Lobby

This Prometheus client offers an idiomatic API for instrumenting applications written in Scala. It tries to provide an API which is efficient, easy to use. Also, as far as possible, it tries to report API usage errors at compile time instead of runtime.

Helper modules support Play controller timing, along with helper syntax for the cats.effect.Sync typeclass, fs2.Task, scalaz.concurrent.Task and monix.eval.Task.

In addition, it offers some extra insight into your program by exposing some useful VM statistics.

Adding the library to your build

libraryDependencies += "org.lyranthe.prometheus" %% "client" % "0.9.0-M1"

Documentation

prometheus_client_scala's People

Contributors

fiadliel avatar gitter-badger avatar nemo83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

prometheus_client_scala's Issues

Broken links in README

The links for Guide and API in the README are broken. Would be great to update these to the correct URLs to easily get more information of how to use this library

When to reset a counter

Currently counters are not reset when the metric is read from the Registry and published, so I'm not sure how to display a RPM metric.

Am I missing something?

I may suggest to have some sort of Resettable and Unbounded Counters.

Formers are reset to 0 every time they are read, the latter will grow indefinitely.

Support HTTPS for PushRegistry

Currently the protocol of the URL is hardcoded in PushRegistry.

Please make it a parameter so one can connect to a https gateway.

Thanks a lot.

Play 2.6.0

Hi.

I just discovered your project... just what I was looking for. ๐Ÿ˜„

Since Play 2.6.0 was released a few days ago, a corresponding play26_2.11 and play26_2.12 would be nice!

Cheers.

Created 2 Counters with same name, only one displayed.

Started to get familiar with the lib and mistakenly created 2 counters with the same name and in the /metrics could only see one.

While it may be normal to see only one of them, I'm wondering whether or not should be possible to register on the same registry 2 metrics with the same name.

MetricName should check for name format

Something like that would be nice.

case class MetricName(name: String) extends AnyVal {
 assert(PrometheusMetricFormat.findFirstIn(name).isDefined, s"$name does not match required metric format ${PrometheusMetricFormat.regex}"))
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.