Skip to content

Upgrade 1.1.0 to 2.1.0 is not exporting metrics pekko-http-metrics-prometheus #184

@spadarthi

Description

@spadarthi

HI, I have been trying different ways to update latest version and failed to get metrics with my API.

val pekkoHttpVersion = "1.2.0"
val pekkoVersion = "1.2.0"
"fr.davit" %% "pekko-http-metrics-prometheus" % "2.1.0",

implementation is like :-

val settings: PrometheusSettings = PrometheusSettings.default
.withIncludeMethodDimension(true)
.withIncludePathDimension(true)
.withIncludeStatusDimension(true)

val registry: PrometheusRegistry = PrometheusRegistry(settings = settings)

logger.info("Starting HTTP server...")
serverBinding = Http().newMeteredServerAt("0.0.0.0", httpPort, registry).bind(routes) 

Do we really missing some thing or any example available to upgrade??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions