Skip to content

How to send logs to an already running prometheus server #889

@alikaz3mi

Description

@alikaz3mi

Dear developers;

In the readme, you mentioned "To add Prometheus exposition to an existing HTTP server, see the MetricsHandler class which provides a BaseHTTPRequestHandler. It also serves as a simple example of how to write a custom endpoint."
I have difficulty implementing this. I am running a Prometheus docker on my machine on a dedicated port. How can I send logs to it? I couldn't find any example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions