Git Product home page Git Product logo

Comments (8)

cdmbr avatar cdmbr commented on June 14, 2024 1

I'm not able to reproduce on the snapshot version. Just making sure, did you reload the project after updating the version an re-running the tests ?

yes .... from 1.6.0 to 1.7.x Dimension is no longer a trait and the withServerDimensions receives an argument 😢

but it seems that the release version is now working properly ... maybe I got a stale version of the snapshot 🤔

anyway, thanks @RustedBones !

from akka-http-metrics.

cdmbr avatar cdmbr commented on June 14, 2024

maybe related to f063d32

from akka-http-metrics.

RustedBones avatar RustedBones commented on June 14, 2024

Dammit! I thought I fixed that before releasing 1.7.0. I must have overlooked something.

I'll not be able to work on that in the coming days, so feel free to open a PR!

Thanks a lot for the bug report @cdmbr

from akka-http-metrics.

RustedBones avatar RustedBones commented on June 14, 2024

@cdmbr I published 1.7.1-SNAPSHOT. Can you give it a try and if I get a 👍 , I'll release 1.7.1 ?

from akka-http-metrics.

cdmbr avatar cdmbr commented on June 14, 2024

@RustedBones Thanks for fixing it 🥇 ... I'm not seeing the 1.7.1-SNAPSHOT in maven central yet 🤔 Have you published to a different repository ?

from akka-http-metrics.

RustedBones avatar RustedBones commented on June 14, 2024

Yes, The artifact is published in the sonatype snapshot resolver. You must add

resolvers += Resolver.sonatypeRepo("snapshots")

from akka-http-metrics.

cdmbr avatar cdmbr commented on June 14, 2024

@RustedBones

still getting some labels swapped 😢 :

akka_http_responses_size_bytes_bucket{env="local_env",method="local_stack",path="local_version",stack="GET",status="/metrics/prometheus",version="2xx",le="0.0",} 0.0
akka_http_responses_total{env="local_env",method="local_stack",path="local_version",stack="GET",status="/metrics/prometheus",version="2xx",} 2.0

config:

val prometheusSettings: PrometheusSettings = PrometheusSettings.default
    .withDurationConfig(Buckets(buckets: _*))
    .withDefineError(_.status.isFailure)
    .withIncludeMethodDimension(true)
    .withIncludePathDimension(true)
    .withIncludeStatusDimension(true)
    .withServerDimensions(
      Dimension("env", env),
      Dimension("stack", stack),
      Dimension("version", version)
    )

route:

  def routes: Route = pathLabeled("metrics" / "prometheus") {
    get { metrics(prometheusRegistry) }
  }

from akka-http-metrics.

RustedBones avatar RustedBones commented on June 14, 2024

I'm not able to reproduce on the snapshot version.
Just making sure, did you reload the project after updating the version an re-running the tests ?

from akka-http-metrics.

Related Issues (20)

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.