VEuPathDB / lib-jaxrs-container-core

Core library for VEuPathDB JaxRS container services
Apache License 2.0
0 stars 0 forks source link

Add an error metric that does not rely on status code that gets initialized with 0 count #44

Open dmgaldi opened 7 months ago

dmgaldi commented 7 months ago

Overview

Currently, errors are only detected by the http_total_requests 500 status code metric. This is imperfect, because the metric isn't emitted until we get our first error. This means the increase() prometheus function reports 0 when we see the first error.

The proposal in this ticket is to add an error in the ErrorMapper to count internal errors and initialize it to 0 when the service starts.