alertmanager/api
Simon Pasquier e0cc523893
api/v2: add path and method to API v2 logs (#2261)
* api/v2: add path and method to API v2 logs

When an API v2 handler logged a message, the log wouldn't include the
path and method. Since different handlers perform the same validations
(e.g. matchers for alerts and silences), it isn't easy to know which
handler was invoked (though the logged filename
+ line number provides a hint).

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Capitalize messages + improve logs

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2020-06-02 16:13:31 +02:00
..
metrics api/metrics/metrics.go: Fix returning wrong counter (#2126) 2019-12-04 11:26:13 +01:00
v1 Spelling (#2167) 2020-01-23 17:06:16 +01:00
v2 api/v2: add path and method to API v2 logs (#2261) 2020-06-02 16:13:31 +02:00
api.go api: add missing metrics for API v2 2019-05-24 14:48:45 +02:00