Skip to content

Prometheus exporter force using embedded httpserver #669

Open
@ysma500

Description

@ysma500

First time posting in open source project 😮 ...

So I'm in a team using Go's implementation of Opencensus w/Prometheus_Exporter. For a client I need to port an existing app to Python.

In Go's implementation the PrometheusExporter initialisation ultimately returns an Handler that you can in turn pass to what ever WebServer implementation you have alongside the rest of your services.
image

In Python's implementation, there's an httpServer that is started to do the serving of metrics directly. Would it be possible to tear it off and return an Handler like BaseHTTPRequestHandler or something along thoses lines to have more control on how it's exposed?

Server is started in opencensus.ext.prometheus line.277 .
Thanks and great project btw,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions