pmm-managed JSON/HTTP1 APIs improvements

Description

Add middlewares for all JSON/HTTP1 APIs (most notably auth_request API) similar to gRPC interceptors:

  • metrics (promhttp)

  • logging

  • panic recovery

Switch from RegisterXXXHandlerFromEndpoint to RegisterXXXHandler to avoid extra dials (even if they dial to localhost).

Merge JSON/HTTP1 and Debug servers?

How to test

None

How to document

None

Smart Checklist

Activity

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Needs Doc

Yes

Affects versions

Smart Checklist

Created July 10, 2019 at 8:15 AM
Updated March 17, 2024 at 11:34 AM