Incubation:APM DataDog series endpoint
Implement a Golang server handling the submit metrics API - https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
Initially this will just log the data out to stdout.
Constraints:
- Max payload is 3200000 bytes
- Max payload of 62914560 bytes when compressed (not sure what this means exactly)
See #3 (closed) for in depth review of the endpoint including JSON payloads.
Response Status codes:
- 202 - accepted
- 400 - bad request
- 403 - auth error
- 408 - request timeout
- 413 - payload too large
Error responses are in the format:
{
"errors": [
"Bad Request"
]
}
Related to #5 (closed).