brave / nitriding-daemon

Tool kit for building secure, scalable, and networked services on top of AWS Nitro Enclaves.
Mozilla Public License 2.0
29 stars 10 forks source link

Add Prometheus histogram for response times #24

Open DJAndries opened 1 year ago

DJAndries commented 1 year ago

Similar to the one we have here: https://github.com/brave/constellation-processors/blob/b7b17dfddb0c8c6fbbfc754e74058fdc0f2d884d/src/prometheus.rs#L51-L54

Create custom alert in Prometheus for when response times become too high.

rillian commented 1 year ago

@evq pointed out we already have a grafana dashboard for this using api_requests_total and request_duration_seconds_bucket metric names.