Skip to content

Can I send metrics to existing web server, instead of starting separate server (start_http_server) #879

Description

@29swastik

I've a python file running KafkaConsumer in infinite loop, there I want to increment prometheus counter whenever there is a failure while processing the consumed kafka message.

Here I don't want run start_http_server because I already have one fastapi server running and I want to send my counter metric to that fastapi server instead of running separate start_http_server, how can I do that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions