Skip to content

Add prometheus metric for in flight requests #17212

@deansheather

Description

@deansheather

Add a prometheus gauge metric that tracks the amount of in flight requests. Using a middleware, we would increment the gauge, and decrement it with a deferred function.

This metric will be useful to detect strange behavior (like websocket spam) or something, which will be super useful to alert on especially once we have #16904.

If it's easy, this should also label by route pattern e.g. route="/api/v2/workspaceagents/:id or something. Don't include IDs in the metrics to avoid ballooning labels.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy